/* =====================================================
   目标责任书管理系统 - 现代化设计系统与样式规范
   ===================================================== */

:root {
    /* 核心色彩 */
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-active: #3730A3;
    --primary-light: #EEF2FF;
    --primary-glow: rgba(79, 70, 229, 0.25);

    --secondary: #0EA5E9;
    --secondary-light: #E0F2FE;

    --accent: #8B5CF6;
    --accent-light: #F5F3FF;

    --success: #10B981;
    --success-light: #ECFDF5;
    --success-border: #A7F3D0;
    --success-text: #065F46;

    --warning: #F59E0B;
    --warning-light: #FFFBEB;
    --warning-border: #FDE68A;
    --warning-text: #92400E;

    --danger: #EF4444;
    --danger-light: #FEF2F2;
    --danger-border: #FECACA;
    --danger-text: #991B1B;

    --info: #3B82F6;
    --info-light: #EFF6FF;
    --info-border: #BFDBFE;
    --info-text: #1E40AF;

    /* 中性色 & 背景 */
    --bg: #F8FAFC;
    --card-bg: #FFFFFF;
    --card-hover: #FCFDFF;
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    --text-main: #0F172A;
    --text-body: #334155;
    --text-muted: #64748B;
    --text-subtle: #94A3B8;

    /* 侧边栏与暗区 */
    --sidebar-bg: #0F172A;
    --sidebar-card: #1E293B;
    --sidebar-border: rgba(255, 255, 255, 0.08);
    --sidebar-text: #94A3B8;
    --sidebar-text-active: #FFFFFF;
    --sidebar-hover: rgba(255, 255, 255, 0.06);

    /* 尺寸与间距 */
    --sidebar-width: 160px;
    --sidebar-collapsed-width: 60px;
    --topbar-height: 68px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --radius-full: 9999px;

    /* 阴影 */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 24px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 30px -6px rgba(15, 23, 42, 0.12);

    --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 基础重置 === */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 14px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

/* === 整体应用容器布局 === */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
}

/* === 侧边栏 === */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-brand {
    height: var(--topbar-height);
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 4px 12px var(--primary-glow);
    flex-shrink: 0;
}

.sidebar-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}

.sidebar.collapsed .sidebar-title {
    opacity: 0;
    pointer-events: none;
    width: 0;
}

.sidebar-nav {
    flex: 1;
    padding: 14px 6px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
    padding: 10px 8px 4px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.sidebar.collapsed .nav-section-title {
    opacity: 0;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 4px;
    border-radius: var(--radius-md);
    color: var(--sidebar-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-item i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.nav-item:hover {
    background: var(--sidebar-hover);
    color: #F1F5F9;
}

.nav-item:hover i {
    transform: scale(1.1);
    color: #818CF8;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.95), rgba(124, 58, 237, 0.95));
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.nav-item.active i {
    color: #FFFFFF;
}

.nav-badge {
    margin-left: auto;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
}

.sidebar.collapsed .nav-item span:not(.nav-badge) {
    display: none;
}

.sidebar.collapsed .nav-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    padding: 2px 4px;
    font-size: 10px;
}

.sidebar-footer {
    padding: 10px 6px;
    border-top: 1px solid var(--sidebar-border);
    background: rgba(0, 0, 0, 0.15);
}

.user-quick-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
}

.user-quick-card:hover {
    background: var(--sidebar-hover);
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.user-meta {
    flex: 1;
    overflow: hidden;
    line-height: 1.3;
}

.user-meta-name {
    color: #F8FAFC;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-meta-role {
    color: var(--text-subtle);
    font-size: 10.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar.collapsed .user-meta {
    display: none;
}

/* === 主内容区 === */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg);
}

.sidebar.collapsed~.main-wrapper {
    margin-left: var(--sidebar-collapsed-width);
}

/* === 顶部栏 === */
.topbar {
    height: var(--topbar-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    box-shadow: var(--shadow-xs);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-icon-toggle {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.3);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumb-nav .divider {
    color: var(--text-subtle);
    font-size: 10px;
}

.breadcrumb-nav .current-page {
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-search {
    position: relative;
    width: 220px;
    transition: width 0.3s;
}

.topbar-search:focus-within {
    width: 300px;
}

.topbar-search input {
    width: 100%;
    height: 38px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0 14px 0 36px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.topbar-search input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.topbar-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    font-size: 13px;
}

.topbar-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--card-bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.topbar-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.3);
}

.topbar-btn .badge-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--danger);
    border: 2px solid #fff;
}

.topbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
    margin: 0 4px;
}

/* === 主内容展示区 === */
.content {
    flex: 1;
    padding: 24px 28px 40px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* === 骨架加载 === */
.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    color: var(--text-muted);
}

.loading-placeholder i {
    font-size: 36px;
    color: var(--primary);
}

/* === 卡片与网格容器 === */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-title i {
    color: var(--primary);
}

.card-body {
    padding: 22px;
}

/* === KPI 统计指标卡片 === */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.kpi-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
}

.kpi-card.kpi-success::before {
    background: var(--success);
}

.kpi-card.kpi-warning::before {
    background: var(--warning);
}

.kpi-card.kpi-danger::before {
    background: var(--danger);
}

.kpi-card.kpi-info::before {
    background: var(--info);
}

.kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.kpi-success .kpi-icon {
    background: var(--success-light);
    color: var(--success);
}

.kpi-warning .kpi-icon {
    background: var(--warning-light);
    color: var(--warning);
}

.kpi-danger .kpi-icon {
    background: var(--danger-light);
    color: var(--danger);
}

.kpi-info .kpi-icon {
    background: var(--info-light);
    color: var(--info);
}

.kpi-info-content {
    flex: 1;
}

.kpi-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.kpi-value {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.1;
}

.kpi-subtext {
    font-size: 11px;
    color: var(--text-subtle);
    margin-top: 4px;
}

/* === 工具栏与过滤器 === */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.search-input {
    position: relative;
    min-width: 220px;
}

.search-input input {
    width: 100%;
    height: 38px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 12px 0 34px;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.search-input input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-input i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-subtle);
    font-size: 13px;
}

.form-control {
    height: 38px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 12px;
    font-size: 13px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

/* === 按钮样式 === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
    border-radius: var(--radius-sm);
    gap: 6px;
}

.btn-lg {
    height: 44px;
    padding: 0 22px;
    font-size: 15px;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--primary-glow);
    color: #fff;
}

.btn-outline {
    background: #fff;
    border-color: var(--border);
    color: var(--text-body);
}

.btn-outline:hover {
    background: var(--bg);
    border-color: var(--text-subtle);
    color: var(--text-main);
}

.btn-success {
    background: var(--success);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: #059669;
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: #DC2626;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-warning {
    background: var(--warning);
    color: #fff;
}

.btn-warning:hover {
    background: #D97706;
    color: #fff;
}

/* === 数据表格 === */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: #fff;
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table th {
    background: #F8FAFC;
    padding: 14px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-body);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.15s;
}

.table tbody tr:hover {
    background-color: #F8FAFC;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* === 状态胶囊标签 === */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
}

.status-approved,
.status-completed {
    background: var(--success-light);
    color: var(--success-text);
    border: 1px solid var(--success-border);
}

.status-approved::before,
.status-completed::before {
    background: var(--success);
}

.status-pending,
.status-pending_review {
    background: var(--warning-light);
    color: var(--warning-text);
    border: 1px solid var(--warning-border);
}

.status-pending::before,
.status-pending_review::before {
    background: var(--warning);
}

.status-rejected,
.status-overdue,
.status-danger {
    background: var(--danger-light);
    color: var(--danger-text);
    border: 1px solid var(--danger-border);
}

.status-rejected::before,
.status-overdue::before,
.status-danger::before {
    background: var(--danger);
}

.status-not_submitted,
.status-uncompleted {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #CBD5E1;
}

.status-not_submitted::before,
.status-uncompleted::before {
    background: #94A3B8;
}

/* === 进度条 === */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: var(--radius-full);
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* === 分页组件 === */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    background: #fff;
}

.pagination-info {
    font-size: 13px;
    color: var(--text-muted);
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-body);
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.page-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* === 模态框与弹窗 === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.modal-overlay.show .modal {
    transform: scale(1);
}

.modal-lg {
    max-width: 960px;
    width: 95%;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F8FAFC;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--transition);
}

.modal-close:hover {
    background: #E2E8F0;
    color: var(--text-main);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: #F8FAFC;
}

.deadline-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    line-height: 1.3;
}
.deadline-date {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}
.deadline-remain-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.deadline-remain-text.is-overdue {
    color: #DC2626;
}
.deadline-remain-text.is-soon {
    color: #D97706;
}
.deadline-remain-text.is-ok {
    color: #059669;
}

/* === 表单设计 === */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group .form-control {
    width: 100%;
}

.form-group textarea.form-control {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    resize: vertical;
}

/* 多选主体标签选择器 */
.multi-select-container {
    position: relative;
}

.multi-select-box {
    min-height: 40px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 4px 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.multi-select-box:focus-within,
.multi-select-box.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.multi-select-tag {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.multi-select-tag .remove {
    cursor: pointer;
    font-size: 14px;
    opacity: 0.7;
}

.multi-select-tag .remove:hover {
    opacity: 1;
    color: var(--danger);
}

.multi-select-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
}

.multi-select-dropdown.show {
    display: block;
}

.multi-select-option {
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s;
}

.multi-select-option:hover {
    background: var(--bg);
}

.multi-select-option.selected {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

/* === 附件加号选择与文件列表 === */
.file-picker-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.file-add-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1.5px dashed var(--primary);
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.file-add-btn i {
    font-size: 16px;
}

.file-add-btn:hover {
    background: var(--primary);
    color: #fff;
    border-style: solid;
}

.file-picker-hint {
    font-size: 12px;
    color: var(--text-subtle);
    line-height: 1.6;
    padding-top: 2px;
}

.file-list {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #F8FAFC;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-item-info i {
    font-size: 18px;
    color: var(--primary);
}

.file-item-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
}

.file-item-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    line-height: 1.5;
}
.file-item-tag.existing {
    background: #EEF2FF;
    color: #4F46E5;
}
.file-item-tag.added {
    background: #ECFDF5;
    color: #059669;
}
.file-list-empty {
    font-size: 12.5px;
    color: var(--text-muted);
    padding: 8px 2px;
}
.file-item-remove {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--danger);
    padding: 4px 8px;
}

/* === 多版本历史时间线与详情优化样式 === */
.timeline-header-card {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 1px solid #E0E7FF;
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.timeline-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.timeline-target-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: #EEF2FF;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid #C7D2FE;
    margin-bottom: 6px;
}

.timeline-indicator-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
}

.timeline-meta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    font-size: 12.5px;
    color: var(--text-muted);
    padding-top: 8px;
    border-top: 1px dashed #CBD5E1;
}

.timeline-meta-grid span b {
    color: var(--text-main);
    font-weight: 600;
}

.timeline-standard-box {
    margin-top: 8px;
    padding: 6px 10px;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    border: 1px solid #E2E8F0;
    font-size: 12.5px;
    color: var(--text-body);
    line-height: 1.5;
}

.timeline-standard-box b {
    color: var(--text-main);
}

.timeline-section-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 时间线各版本卡片 */
.timeline-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 12px 14px;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-card.is-latest {
    border-color: #818CF8;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.12);
    background: linear-gradient(180deg, #FBFBFF 0%, #FFFFFF 100%);
}

.timeline-card.is-latest::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 18px;
    right: 18px;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #8B5CF6);
    border-radius: 3px 3px 0 0;
}

.timeline-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
}

.timeline-version-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.version-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.version-badge-pill.latest {
    background: linear-gradient(135deg, #4F46E5, #7C3AED);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.25);
}

.version-badge-pill.history {
    background: #64748B;
    color: #FFFFFF;
}

.timeline-submitter-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12.5px;
    color: var(--text-muted);
}

.timeline-submitter-meta i {
    color: var(--text-subtle);
    margin-right: 3px;
}

.timeline-submitter-meta b {
    color: var(--text-main);
}

.timeline-block-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.timeline-block-label i {
    color: var(--primary);
    font-size: 13px;
}

/* 填报文本内容框：自动高度根据文本量撑开 */
.timeline-content-box {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    padding: 6px 10px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    white-space: pre-wrap;
    word-break: break-word;
    height: auto;
    margin-bottom: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.timeline-content-box.is-empty {
    color: var(--text-subtle);
    font-style: italic;
}

/* 附件列表与详情卡片 */
.attachment-section {
    margin-bottom: 8px;
}

.attachment-count-badge {
    background: #EEF2FF;
    color: #4F46E5;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: 4px;
}

.attachment-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.attachment-item-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-md);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    gap: 10px;
}

.attachment-item-card:hover {
    border-color: #818CF8;
    background: #F8FAFC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.attachment-left-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}

/* 附件缩略图 / 图标 */
.attachment-media-preview {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: #F1F5F9;
    border: 1px solid var(--border);
}

.attachment-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.attachment-item-card:hover .attachment-thumb-image {
    transform: scale(1.08);
}

.attachment-thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.attachment-item-card:hover .attachment-thumb-overlay {
    opacity: 1;
}

.attachment-file-icon {
    font-size: 20px;
}

.attachment-details {
    min-width: 0;
    flex: 1;
}

.attachment-filename {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    margin-bottom: 2px;
    transition: color 0.2s ease;
}

.attachment-item-card:hover .attachment-filename {
    color: var(--primary);
}

.attachment-meta-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11.5px;
    color: var(--text-muted);
}

.attachment-type-tag {
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: 0.2px;
}

.attachment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.no-attachment-tip {
    font-size: 12.5px;
    color: var(--text-subtle);
    padding: 6px 10px;
    background: #F8FAFC;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 审核流转结果卡片 */
.timeline-review-bar {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 12.5px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-review-bar.approved {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.timeline-review-bar.rejected {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.timeline-review-bar.pending {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
}

.timeline-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-weight: 600;
    line-height: 1.4;
}

.timeline-review-reason {
    margin-top: 0;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px;
    border: 1px solid #FECACA;
    font-size: 12.5px;
    line-height: 1.45;
    color: #7F1D1D;
    white-space: pre-wrap;
    word-break: break-word;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.timeline-review-reason.approved-comment {
    border-color: #A7F3D0;
    color: #065F46;
}

.timeline-review-reason b {
    flex-shrink: 0;
    font-weight: 700;
}

.timeline-review-reason span {
    min-width: 0;
    flex: 1;
}

/* === 悬浮 AI 智能填报助手 === */
.floating-ai {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 990;
}

.floating-ai-button {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.45);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.floating-ai-button:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.6);
}

.floating-ai-panel {
    position: absolute;
    bottom: 68px;
    right: 0;
    width: 380px;
    height: 520px;
    background: #FFFFFF;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.floating-ai-panel.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.floating-ai-header {
    padding: 14px 18px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.floating-ai-title {
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.floating-ai-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 16px;
}

.floating-ai-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #F8FAFC;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-ai-message {
    padding: 10px 14px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
}

.floating-ai-message.ai {
    background: #FFFFFF;
    color: var(--text-main);
    align-self: flex-start;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
    border-bottom-left-radius: 2px;
}

.floating-ai-message.user {
    background: var(--primary);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.floating-ai-footer {
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-ai-footer textarea {
    width: 100%;
    height: 60px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
    resize: none;
    transition: var(--transition);
}

.floating-ai-footer textarea:focus {
    border-color: var(--primary);
}

.floating-ai-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* === Toast 消息提示 === */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
    transform: translateX(100%);
    animation: toastIn 0.3s forwards ease;
}

.toast-success i {
    color: var(--success);
    font-size: 16px;
}

.toast-error i {
    color: var(--danger);
    font-size: 16px;
}

.toast-warning i {
    color: var(--warning);
    font-size: 16px;
}

.toast-info i {
    color: var(--info);
    font-size: 16px;
}

.toast-out {
    animation: toastOut 0.3s forwards ease;
}

@keyframes toastIn {
    to {
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        transform: translateX(120%);
        opacity: 0;
    }
}

/* === 响应式设计 === */
@media (max-width: 1024px) {
    .sidebar {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar .sidebar-title,
    .sidebar .nav-item span:not(.nav-badge),
    .sidebar .user-meta,
    .sidebar .nav-section-title {
        display: none !important;
    }

    .main-wrapper {
        margin-left: var(--sidebar-collapsed-width);
    }

    .content {
        padding: 16px;
    }
}

@media (max-width: 640px) {
    .topbar {
        padding: 0 14px;
    }

    .topbar-search {
        display: none;
    }

    .floating-ai {
        right: 16px;
        bottom: 20px;
    }

    .floating-ai-panel {
        width: calc(100vw - 32px);
        right: -8px;
    }
}

/* === 个人中心现代化样式规范 === */
.profile-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.profile-hero {
    position: relative;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%);
    padding: 28px 32px;
    color: #FFFFFF;
    box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.3), 0 8px 10px -6px rgba(49, 46, 129, 0.2);
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.profile-hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, rgba(14, 165, 233, 0) 70%);
    pointer-events: none;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 22px;
    z-index: 1;
}

.profile-avatar-wrapper {
    position: relative;
}

.profile-avatar-large {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Outfit', var(--font-sans);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.profile-online-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10B981;
    border: 3px solid #1E1B4B;
}

.profile-hero-info h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.profile-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: #F8FAFC;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-hero-stats {
    display: flex;
    gap: 14px;
    z-index: 1;
}

.profile-hero-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 12px 18px;
    text-align: center;
    min-width: 100px;
}

.profile-hero-stat-label {
    font-size: 11.5px;
    color: #CBD5E1;
    margin-bottom: 4px;
}

.profile-hero-stat-val {
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
}

.profile-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 22px;
    align-items: start;
}

@media (max-width: 900px) {
    .profile-layout-grid {
        grid-template-columns: 1fr;
    }
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}

.profile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-input-wrapper i.input-prefix-icon {
    position: absolute;
    left: 12px;
    color: var(--text-subtle);
    font-size: 14px;
    pointer-events: none;
}

.profile-input-wrapper .form-control {
    padding-left: 36px;
}

.profile-input-wrapper .toggle-pwd-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-subtle);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s ease;
}

.profile-input-wrapper .toggle-pwd-btn:hover {
    color: var(--primary);
}

.profile-security-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.profile-security-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-security-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.profile-quick-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    margin-bottom: 8px;
}

.profile-quick-nav-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(3px);
}

.profile-org-card {
    overflow: hidden;
}

.profile-org-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-org-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-org-filter-btn {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.profile-org-filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.profile-org-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.profile-org-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}

.profile-org-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: #4F46E5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-org-me-tag {
    display: inline-flex;
    align-items: center;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: #EEF2FF;
    color: #4F46E5;
    vertical-align: middle;
}

.profile-org-row-me {
    background: #F8FAFC;
}

.profile-org-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 36px 16px 20px;
}

.profile-org-empty i {
    font-size: 28px;
    color: var(--text-subtle);
    margin-bottom: 10px;
}

.profile-org-empty p {
    margin: 0;
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .profile-hero-stats {
        width: 100%;
        justify-content: stretch;
    }

    .profile-hero-stat-card {
        flex: 1;
        min-width: 0;
    }
}