/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 主色调 - 鲜艳蓝色 */
    --primary-color: #1d2bff;
    --primary-hover: #1522d9;
    --primary-light: rgba(29, 43, 255, 0.15);
    --secondary-color: #1d2bff;
    --accent-color: #1d2bff;
    --accent-hover: #1522d9;
    --success-color: #1d2bff;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* 背景色 - 白色系 + 蓝色透明 */
    --bg-color: rgba(255, 255, 255, 0.9);
    --bg-secondary: rgba(255, 255, 255, 0.7);
    --bg-tertiary: rgba(255, 255, 255, 0.5);
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-hover: rgba(255, 255, 255, 0.95);

    /* 边框和阴影 - 更精致 */
    --border-color: rgba(29, 43, 255, 0.15);
    --border-light: rgba(29, 43, 255, 0.25);
    --shadow: 0 2px 8px rgba(29, 43, 255, 0.08);
    --shadow-md: 0 4px 20px rgba(29, 43, 255, 0.12);
    --shadow-lg: 0 12px 40px rgba(29, 43, 255, 0.18);
    --glow: 0 0 20px rgba(29, 43, 255, 0.3);

    /* 文字颜色 - 更深的对比 */
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    /* 圆角 */
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* 过渡 */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #eef2ff 0%, #ffffff 50%, #eef2ff 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    max-width: 1400px;
    margin: 0 auto;
    padding: 16px 20px;
    padding-bottom: 60px;
}

/* 顶部导航 */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.header h1 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-tabs {
    display: flex;
    gap: 4px;
    background: rgba(238, 242, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 3px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(29, 43, 255, 0.1);
}

.tab-btn {
    padding: 8px 18px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius);
    transition: all var(--transition-normal);
}

.tab-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-color), #1522d9);
    color: white;
    box-shadow: var(--glow);
    font-weight: 600;
}

/* 主内容区 */
.main-content {
    min-height: calc(100vh - 180px);
}

.panel {
    display: none;
    animation: panelFadeIn 0.3s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel.active {
    display: block;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h2 {
    font-size: 20px;
    font-weight: 600;
}

.panel-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.panel-actions {
    display: flex;
    gap: 12px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1522d9);
    color: white;
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(29, 43, 255, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1522d9, #1d2bff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 43, 255, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--radius);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-text {
    background: transparent;
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--radius);
}

.btn-text:hover {
    background: rgba(0, 122, 255, 0.1);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn .icon {
    font-size: 16px;
}

/* 表单样式 */
.form-group {
    margin-bottom: 12px;
    overflow: hidden;
}

.form-group input,
.form-group textarea,
.form-group select {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 基本信息行（头像+输入框） */
.basic-info-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.avatar-upload {
    flex-shrink: 0;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border: 2px dashed var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    background: var(--bg-color);
    transition: all var(--transition-normal);
}

.avatar-preview:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    padding: 10px;
}

.basic-info-inputs {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(29, 43, 255, 0.15);
    border-radius: var(--radius);
    font-size: 14px;
    transition: all var(--transition-normal);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

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

.form-checkbox {
    margin: 16px 0;
}

.form-checkbox label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.hint {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

/* 素材库样式 */
.experience-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.experience-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.experience-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--primary-light);
}

.experience-card:hover::before {
    opacity: 1;
}

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

.experience-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.experience-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
}

.experience-actions {
    display: flex;
    gap: 8px;
}

.experience-actions button {
    padding: 4px 8px;
    font-size: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.experience-actions button:hover {
    color: var(--primary-color);
}

.experience-tasks {
    margin-top: 12px;
}

.experience-tasks h4 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.experience-tasks ul {
    list-style: none;
}

.experience-tasks li {
    position: relative;
    padding-left: 16px;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.experience-tasks li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-light);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: linear-gradient(135deg, var(--primary-light), rgba(29, 43, 255, 0.08));
    color: var(--primary-hover);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(29, 43, 255, 0.2);
    transition: all var(--transition-fast);
}

.tag:hover {
    background: linear-gradient(135deg, var(--primary-color), #1522d9);
    color: white;
    transform: scale(1.05);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state .hint {
    font-size: 14px;
    margin-top: 8px;
}

/* 素材库板块卡片样式 */
.section-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 10px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow);
}

.section-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(29, 43, 255, 0.25);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.section-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(29, 43, 255, 0.08);
}

.section-card-header .header-right {
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-card-header .header-right .btn {
    display: flex;
    align-items: center;
}

.section-card-header h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}

.section-card-header h3 .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

.section-card-body {
    padding: 10px 14px;
}

/* 基本信息显示 */
.basic-info-display {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.basic-info-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.avatar-upload {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.info-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

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

/* 教育列表显示 */
.education-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* 统一栏目列表 */
.section-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 50px;
}

/* 双列布局 */
#education-items,
#internship-items,
#project-items,
[id$="-items"] {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

/* 单列布局（当内容较长时） */
@media (max-width: 768px) {
    #education-items,
    #internship-items,
    #project-items,
    [id$="-items"] {
        grid-template-columns: 1fr;
    }
}

/* 统一条目卡片 */
.section-item-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 8px 10px;
    padding-right: 50px;
    background: var(--bg-color);
    border-radius: var(--radius);
    gap: 6px;
    min-height: 40px;
    box-sizing: border-box;
}

.section-item-card > * {
    min-width: 0;
}

.section-item-card input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    margin-right: 6px;
}

.section-item-content {
    flex: 1;
    min-width: 0;
}

.section-item-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.section-item-actions .btn-text {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.section-item-actions .btn-edit-item {
    color: var(--primary-color);
    background: var(--primary-light);
}

.section-item-actions .btn-edit-item:hover {
    background: var(--primary-color);
    color: white;
}

.section-item-actions .btn-delete-item {
    color: #ff6b6b;
    background: #fff0f0;
}

.section-item-actions .btn-delete-item:hover {
    background: #ff4d4d;
    color: white;
}

.section-item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 13px;
}

.section-item-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.section-item-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.section-item-sep {
    color: var(--text-light);
    font-size: 11px;
}

.section-item-tags {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    vertical-align: middle;
}

.section-item-role {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.section-item-period {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

.section-item-detail {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    padding-top: 4px;
    border-top: 1px dashed var(--border-color);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    overflow: visible;
}

/* 标签样式 */
.edu-tag {
    display: inline-block;
    padding: 1px 6px;
    font-size: 10px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 3px;
    margin-right: 4px;
    font-weight: 500;
    vertical-align: middle;
    line-height: 1.4;
}

/* 底部操作栏 */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    position: sticky;
    bottom: 0;
}

/* 顶部操作栏 */
.action-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
}

.select-bar {
    display: flex;
    align-items: center;
    gap: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* JD输入 */
.jd-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    resize: vertical;
    font-family: inherit;
}

.jd-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.jd-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* 润色结果 */
.polish-result-card .section-card-body {
    max-height: 500px;
    overflow-y: auto;
}

.polish-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.polish-exp-block {
    padding: 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.polish-exp-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
}

.polish-tasks {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    resize: vertical;
    font-family: inherit;
}

.polish-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

.polish-loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
    box-shadow: 0 0 20px rgba(29, 43, 255, 0.2);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 样式设置栏 */
.settings-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    flex-wrap: wrap;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

.settings-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.settings-group select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    background: white;
    min-width: 70px;
}

.settings-group input[type="range"] {
    width: 80px;
}

.settings-group .range-value {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 30px;
}

/* 简历编辑和预览区域 */
.resume-area {
    display: grid;
    grid-template-columns: 1fr 1.857fr;
    gap: 12px;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
}

.resume-edit-panel,
.resume-preview-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(29, 43, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* 简历预览容器 */
.resume-preview-panel {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    overflow: auto;
    padding: 16px;
}

.resume-edit-panel h4,
.resume-preview-panel h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 0;
    padding: 0;
}

.preview-header h4 {
    margin: 0;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
}

/* 编辑字段 */
.resume-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resume-edit-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.resume-edit-item label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.resume-edit-item input,
.resume-edit-item textarea {
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
}

.resume-edit-item input {
    height: auto;
    min-height: 36px;
}

.resume-edit-item textarea {
    resize: none;
    height: 100px;
    overflow-y: auto;
}

.resume-edit-item input:focus,
.resume-edit-item textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* 选择框样式 */
.exp-select-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: var(--bg-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s;
}

.exp-select-card:hover {
    background: var(--border-color);
}

.exp-select-card input[type="checkbox"] {
    margin-top: 3px;
}

.exp-select-info {
    flex: 1;
}

.exp-select-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 4px;
}

.exp-select-period {
    font-size: 12px;
    color: var(--text-secondary);
}

.exp-select-tasks {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.exp-select-tasks strong {
    color: var(--primary-color);
    font-weight: 600;
}

.exp-select-tasks em {
    color: var(--accent-color);
    font-style: italic;
}

.exp-select-tasks .md-list {
    margin: 4px 0;
    padding-left: 16px;
    list-style: disc;
}

.exp-select-tasks .md-list li {
    margin-bottom: 2px;
    list-style: disc;
}

/* 页脚 */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.section-card-body .form-group {
    margin-bottom: 16px;
}

.section-card-body .form-group:last-child {
    margin-bottom: 0;
}

.save-bar {
    padding: 20px 0;
    text-align: center;
}

.save-bar .btn {
    min-width: 200px;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-color);
    padding: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-body {
    overflow-y: auto;
    padding: 16px;
}

.modal-content.modal-large {
    max-width: 800px;
}

.modal-content.modal-selection {
    max-width: 600px;
    max-height: 80vh;
}

.modal-body.selection-modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 120px);
}

/* 编辑弹窗优化 - 更宽更高 */
.modal-content.modal-edit {
    max-width: 1100px;
    max-height: 95vh;
    width: 95%;
}

.modal-content.modal-edit .modal-body {
    padding: 28px;
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content.modal-edit textarea {
    min-height: 200px;
    height: 250px;
    resize: vertical;
}

.modal-content.modal-edit .form-group input,
.modal-content.modal-edit .form-group textarea {
    padding: 16px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-secondary);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    transition: all var(--transition-fast);
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* 上传区域 */
.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.upload-placeholder .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 12px;
}

.upload-placeholder p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* 任务列表 */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.task-item input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* JD输入区 */
.jd-input-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px;
    margin-bottom: 16px;
}

.jd-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 16px;
}

/* 匹配结果 */
.match-result {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.match-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.match-actions {
    display: flex;
    gap: 8px;
}

.match-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.match-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: all 0.2s;
}

.match-item:hover {
    border-color: var(--primary-color);
}

.match-item.selected {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.match-checkbox {
    margin-top: 4px;
}

.match-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.match-content {
    flex: 1;
}

.match-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.match-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.match-score {
    padding: 2px 8px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.match-tasks {
    font-size: 13px;
    color: var(--text-secondary);
}

.match-tasks li {
    margin-bottom: 4px;
}

.highlight {
    background: #fef3c7;
    padding: 0 2px;
    border-radius: 2px;
}

.match-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

/* AI润色 */
.polish-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .polish-content {
        grid-template-columns: 1fr;
    }
}

.polish-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-badge {
    padding: 2px 8px;
    background: #10b981;
    color: white;
    border-radius: 10px;
    font-size: 11px;
    font-weight: normal;
}

.polish-original,
.polish-result {
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius);
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
}

.polish-result {
    background: #f0fdf4;
    position: relative;
}

/* 可编辑的润色结果 */
.polish-exp-block {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.polish-exp-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.polish-exp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.polish-exp-header input {
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.polish-exp-header input:focus {
    outline: none;
    border-color: #16a34a;
}

.polish-sep {
    color: #94a3b8;
}

.polish-tasks {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
    line-height: 1.6;
    resize: vertical;
}

.polish-tasks:focus {
    outline: none;
    border-color: #16a34a;
}

.polish-loading {
    text-align: center;
    padding: 40px;
    grid-column: 1 / -1;
}

/* 简历预览 */
.resume-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-top: 24px;
}

.resume-preview {
    flex-shrink: 0;
    background: white;
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform-origin: center center;
}

.resume-template {
    background: white;
    width: 210mm;
    min-height: 297mm;
    max-height: 297mm;
    transform-origin: center center;
}

/* 简历编辑与预览容器 */
.resume-editor-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* 样式设置栏 */
.resume-settings-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-wrap: wrap;
}

.settings-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-group label {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.settings-group select {
    padding: 6px 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    background: white;
    min-width: 80px;
}

.settings-group input[type="range"] {
    width: 100px;
}

.settings-group .range-value {
    font-size: 12px;
    color: var(--text-secondary);
    min-width: 35px;
}

/* 主编辑区域 */
.resume-main-area {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.resume-editor-panel,
.resume-preview-panel {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.resume-editor-panel h4,
.resume-preview-panel h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: var(--text-primary);
}

/* 简历编辑字段 */
.resume-edit-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    padding: 16px;
}

.resume-edit-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.resume-edit-item label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.resume-edit-item input,
.resume-edit-item textarea {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    transition: border-color 0.2s;
}

.resume-edit-item input:focus,
.resume-edit-item textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.resume-edit-item textarea {
    resize: vertical;
    min-height: 80px;
}

/* 编辑面板分组样式 */
.resume-edit-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.resume-edit-section-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin: 16px 0 8px 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.resume-edit-readonly {
    padding: 8px 12px;
    background: var(--bg-color);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 14px;
}

.resume-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* 简历模板样式 - A4比例 */
.resume-template {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: white;
    padding: 40px;
    font-family: 'Microsoft YaHei', sans-serif;
    box-sizing: border-box;
}

.resume-template .resume-name {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.resume-template .resume-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eee;
}

.resume-template .resume-item {
    margin-bottom: 16px;
}

.resume-template .resume-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.resume-template .resume-item-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.resume-template .resume-item-meta {
    font-size: 12px;
    color: #666;
}

.resume-template .resume-item-tasks {
    font-size: 12px;
    line-height: 1.6;
    color: #444;
}

.resume-template .resume-item-tasks li {
    margin-bottom: 4px;
}

/* 历史记录页面 */
.history-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.history-page .history-header {
    margin-bottom: 24px;
}

.history-page .history-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.history-records {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-record-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.history-record-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.history-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 0 4px;
}

.history-toolbar-actions {
    display: flex;
    gap: 4px;
}

.history-hint {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.history-checkbox {
    margin-right: 12px;
}

.history-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.history-records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-record-info {
    flex: 1;
}

.history-record-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.history-record-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-record-actions {
    display: flex;
    gap: 8px;
}

.history-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

/* 历史记录 */
.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.history-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.history-info h4 {
    font-size: 15px;
    font-weight: 600;
}

.history-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.history-time {
    font-size: 12px;
    color: var(--text-light);
}

.history-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

/* 底部 */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(29, 43, 255, 0.1);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(29, 43, 255, 0.08);
    z-index: 100;
}

.footer-tip {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-tip::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 范围输入 */
input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.range-value {
    font-size: 13px;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* 标签输入 */
.tag-input {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-height: 40px;
    cursor: text;
}

.tag-input:hover {
    border-color: var(--primary-color);
}

.tag-input .tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-input .tag .remove-tag {
    cursor: pointer;
    opacity: 0.6;
}

.tag-input .tag .remove-tag:hover {
    opacity: 1;
}

.tag-input input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 100px;
    padding: 4px;
    font-size: 14px;
}

/* 解析结果 */
.parsing-result {
    margin-top: 20px;
}

/* AI多经历提示 */
.ai-multi-notice {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 16px;
}

.ai-multi-notice p {
    font-size: 14px;
    color: #166534;
    margin-bottom: 12px;
}

.multi-exp-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.exp-nav-btn {
    padding: 6px 12px;
    background: white;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius);
    font-size: 13px;
    color: #166534;
    cursor: pointer;
}

.exp-nav-btn:hover,
.exp-nav-btn.active {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

/* AI识别的基础信息 */
.ai-parse-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.ai-parse-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.info-section {
    margin-bottom: 12px;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section > label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 6px;
}

.info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: #1e293b;
}

/* 完整简历录入弹窗 */
.modal-large {
    max-width: 800px;
}

.resume-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.resume-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.resume-section h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-header h4 {
    margin-bottom: 0;
}

/* 教育背景卡片 */
.edu-card,
.award-card,
.internship-card,
.project-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
}

.edu-card .card-header,
.award-card .card-header,
.internship-card .card-header,
.project-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.edu-card .card-title,
.internship-card .card-title,
.project-card .card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.edu-card .card-subtitle,
.internship-card .card-subtitle,
.project-card .card-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.card-delete {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    line-height: 1;
}

.card-delete:hover {
    color: var(--danger-color);
}

/* 奖项卡片 */
.award-card .award-content {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 职责要点 */
.task-list-edit {
    margin-top: 8px;
}

.task-item-edit {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

/* 工作职责大文本框 */
.intern-tasks,
.project-tasks {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

.intern-tasks:focus,
.project-tasks:focus {
    outline: none;
    border-color: var(--primary-color);
}

.task-item-edit textarea {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

.task-item-edit .remove-task {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 18px;
    padding: 8px 0;
}

.task-item-edit .remove-task:hover {
    color: var(--danger-color);
}

.add-task-btn {
    font-size: 13px;
    color: var(--primary-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 0;
}

.add-task-btn:hover {
    text-decoration: underline;
}

/* 设置弹窗 */
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: white;
    cursor: pointer;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f4ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #a8c0ff;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8fa8ff;
}

/* 页面加载动画 */
@keyframes pageLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#app {
    animation: pageLoad 0.5s ease;
}

/* 响应式 */
@media (max-width: 768px) {
    #app {
        padding: 12px;
    }

    .header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .panel-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .polish-content {
        grid-template-columns: 1fr;
    }
}

/* 选择面板样式 */
.selection-panel {
    padding: 4px 0;
}

.empty-tip {
    text-align: center;
    color: var(--text-muted);
    padding: 20px;
    font-size: 14px;
}

.selection-group {
    margin-bottom: 16px;
}

.selection-group-header {
    margin-bottom: 8px;
    padding: 6px 10px;
    background: var(--bg-color);
    border-radius: var(--radius);
}

.selection-group-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
}

.selection-group-title input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.selection-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 24px;
}

.selection-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.selection-item-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.selection-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.selection-item:hover {
    background: var(--bg-color);
    border-color: var(--primary-color);
}

.selection-item input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
}

.selection-item-name {
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.selection-item-role {
    font-size: 12px;
    color: var(--primary-color);
    background: rgba(29, 43, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.selection-item-period {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}
