/* === Workspace Global Font Size Override === */
.detailed-config-panel,
.detailed-config-panel input,
.detailed-config-panel textarea,
.detailed-config-panel .sub-label,
.detailed-config-panel button,
.detailed-config-panel select,
.detailed-config-panel .section-title,
.detailed-config-panel .rich-textarea {
    font-size: 14px !important;
}

/* === Resume Section Block === */
.resume-section-block { 
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255, 255, 255, 0.8); 
    border-radius: 16px; 
    padding: 1rem; 
    margin-bottom: 1.5rem; 
    display: flex; 
    flex-direction: column; 
    gap: 0.6rem; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.resume-section-block:hover { 
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 24px rgba(103, 119, 141, 0.08); 
    border-color: rgba(255, 255, 255, 1); 
}
.resume-section-block.compact { padding: 0.625rem; gap: 0.5rem; border-radius: var(--radius-md); border-width: 1px; margin-bottom: 1.25rem; }
.resume-section-block.compact > div:first-child { padding-bottom: 0.5rem; margin-bottom: 0.25rem; }
.resume-section-block .section-title { font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.25rem; line-height: 1.3; }

/* === Profile Header Row === */
.profile-header-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.125rem 0.125rem; }
.profile-form-group { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

/* === Avatar Upload === */
.avatar-upload-circle { width: 56px; height: 56px; border-radius: 50%; background-color: var(--bg-subtle); border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; position: relative; transition: all 0.2s; flex-shrink: 0; }
.avatar-upload-circle:hover { border-color: var(--accent-color); background-color: color-mix(in srgb, var(--accent-color) 5%, transparent); }
.avatar-upload-circle img { width: 100%; height: 100%; object-fit: cover; }
.avatar-placeholder { color: var(--text-secondary); opacity: 0.5; }
.avatar-placeholder svg { width: 24px; height: 24px; }

/* === Bio Textarea === */
.bio-textarea { 
    width: 100%; 
    min-height: 40px; 
    height: auto; 
    max-height: 200px; 
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.8); 
    padding: 10px 12px; 
    font-family: inherit; 
    font-size: 0.95rem; 
    line-height: 1.6; 
    color: var(--text-primary); 
    resize: none; 
    outline: none; 
    display: block; 
    border-radius: 10px; 
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    box-sizing: border-box; 
    overflow-y: auto; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}
.bio-textarea:focus { 
    background: #ffffff; 
    border-color: var(--accent-color); 
    box-shadow: 0 4px 16px rgba(103, 119, 141, 0.1);
}

/* === Contact Edit Row === */
.contact-edit-row { display: flex; align-items: center; gap: 0.5rem; width: 100%; margin-bottom: 0.5rem; transition: all 0.2s ease; }
.contact-edit-row.contact-dragging { opacity: 0.5; transform: scale(0.98); }
.contact-edit-row.contact-drag-over { border-top: 2px dashed var(--accent-color); padding-top: 2px; margin-top: -2px; }
.drag-handle { 
    width: 32px; 
    height: 32px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: grab; 
    color: var(--text-secondary); 
    opacity: 0.6; 
    transition: all 0.2s ease;
    flex-shrink: 0;
    border-radius: 4px;
}
.drag-handle:hover { color: var(--text-primary); opacity: 1; background-color: var(--bg-subtle); }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { width: 16px; height: 16px; }
.contact-edit-row .contact-icon-select { width: 32px !important; height: 32px !important; min-width: 32px !important; max-width: 32px !important; min-height: 32px !important; max-height: 32px !important; flex: 0 0 32px !important; }
.contact-edit-row .contact-icon-select .select-dropdown.fixed { width: 32px !important; min-width: 32px !important; padding: 2px !important; display: flex; flex-direction: column; gap: 2px; }
.contact-edit-row .contact-icon-select .select-dropdown.fixed .select-option { 
    width: 28px !important; 
    height: 28px !important; 
    padding: 0 !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    border-radius: 4px !important; 
}
.contact-edit-row .contact-icon-select .select-dropdown.fixed .select-option span { 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    width: 16px !important; 
    height: 16px !important; 
}
.contact-edit-row .contact-icon-select .select-dropdown.fixed .select-option svg { 
    width: 16px !important; 
    height: 16px !important;
    flex-shrink: 0 !important;
}
.contact-edit-row .contact-icon-select .select-trigger.icon-only { width: 32px !important; height: 32px !important; min-width: 32px !important; max-width: 32px !important; min-height: 32px !important; max-height: 32px !important; border-radius: var(--radius-sm) !important; display: flex !important; align-items: center !important; justify-content: center !important; }

/* === Education Edit Card === */
.education-edit-card { background-color: var(--bg-workspace); border: 1px solid var(--border-color); border-radius: 6px; padding: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.edu-row { display: flex; align-items: center; gap: 0.5rem; width: 100%; }
.edu-row .styled-input-wrapper { flex: 1; min-width: 0; height: 32px; border-radius: 6px; }
.edu-degree-date-row { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 0; }

/* === Unified Add Buttons === */
.unified-add-buttons { display: flex; gap: 0.5rem; padding-top: 0.25rem; }
.unified-add-buttons .editor-add-btn.simple { flex: 1; justify-content: center; padding: 0.625rem 0.5rem; font-size: 0.9rem; gap: 0.25rem; background-color: transparent; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-secondary); transition: all 0.15s; }
.unified-add-buttons .editor-add-btn.simple:hover { border-color: var(--accent-color); color: var(--accent-color); }
.unified-add-buttons .editor-add-btn.simple svg { width: 14px; height: 14px; }

/* === Metrics Grid === */
.metrics-grid-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.metric-item-editor { display: flex; flex-direction: column; gap: 0.5rem; }
.metric-input-row { display: flex; align-items: center; gap: 0.5rem; }

/* === Metric Row (Inline) === */
.metric-row { display: flex; align-items: center; gap: 0.5rem; width: 100%; margin-bottom: 0.5rem; min-height: 32px; }
.metric-value-input { flex: 0 0 100px; width: 100px; min-width: 100px; height: 32px; border-radius: var(--radius-sm); }
.metric-label-input { flex: 1; min-width: 0; height: 32px; border-radius: var(--radius-sm); }
.metric-value-input input, .metric-label-input input { font-size: 1rem; }

/* === Scene List Simple === */
.scene-list-simple { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 auto; min-height: 0; }

/* === Timeline Card (Experience) === */
.timeline-card { 
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.8); 
    border-radius: 16px; 
    padding: 1.25rem; 
    position: relative; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 1; 
    display: flex; 
    flex-direction: column; 
    flex: 1 1 auto; 
    min-height: 280px; 
    overflow: visible; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}
.timeline-card:hover { 
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--accent-color); 
    box-shadow: 0 10px 30px rgba(103, 119, 141, 0.12); 
}
.timeline-card.is-active { z-index: 9997; }
.timeline-form-grid { display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 auto; min-height: 0; }
.timeline-delete { background: transparent; border: none; color: var(--text-secondary); opacity: 0.4; cursor: pointer; padding: 6px; flex-shrink: 0; transition: all var(--transition-base) ease; border-radius: var(--radius-sm); }
.timeline-delete:hover { color: var(--error-text); opacity: 1; background-color: var(--error-bg); transform: scale(1.05); }

/* === Tags Input Container === */
.tags-input-container { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.25rem; }
.tags-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-chip { display: inline-flex; align-items: center; justify-content: center; gap: 4px; background-color: var(--bg-main); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: var(--radius-full); font-size: 1rem; font-weight: 500; color: var(--text-primary); transition: border-color 0.15s ease; cursor: pointer; position: relative; line-height: 1; z-index: 1; min-width: 100px; }
.tag-chip:hover { border-color: #c7c7d0; }
.tag-chip.is-active { z-index: 9998; }
.tag-chip.tag-dragging { opacity: 0.5; transform: scale(0.95); }
.tag-chip.tag-drag-over { transform: scale(1.05); box-shadow: 0 0 0 2px var(--accent-color); }
.tag-chip button { background: none; border: none; color: inherit; cursor: pointer; padding: 0; font-size: 16px; line-height: 1; display: flex; align-items: center; opacity: 0.5; transition: opacity var(--transition-fast) ease; }
.tag-chip button:hover { opacity: 1; }
.tag-color-trigger { width: 28px; height: 100%; display: flex; align-items: center; justify-content: center; cursor: pointer; border-right: 1px solid var(--border-color); transition: background-color var(--transition-base) ease; border-top-left-radius: var(--radius-full); border-bottom-left-radius: var(--radius-full); position: absolute; left: 0; top: 0; bottom: 0; }
.tag-color-trigger:hover { background-color: var(--bg-subtle); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.1); }
.tag-color-popover { position: fixed; width: 100px; background: var(--bg-main); border: 1.5px solid var(--border-color); padding: 6px; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 99999; }
.mini-color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini-swatch { width: 100%; height: 24px; border-radius: var(--radius-sm); cursor: pointer; border: 1.5px solid transparent; transition: border-color 0.15s; }
.mini-swatch:hover { border-color: var(--text-primary); }

/* === Rich Text Editor === */
.rich-input-wrapper { margin-top: 0.25rem; display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-main); overflow: hidden; transition: border-color 0.15s ease; position: relative; z-index: 1; flex: 1 1 auto; min-height: 140px; }
.rich-input-wrapper.is-active { z-index: 9998; }
.rich-input-wrapper:focus-within { border-color: var(--accent-color); }
.rich-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background-color: var(--bg-workspace); border-bottom: 1px solid var(--border-color); border-top-left-radius: 6px; border-top-right-radius: 6px; flex-shrink: 0; }
.toolbar-btn { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: transparent; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem; color: var(--text-secondary); transition: all var(--transition-base) ease; position: relative; padding: 0; line-height: 1; }
.toolbar-btn:hover { background-color: var(--bg-subtle); color: var(--text-primary); }
.toolbar-btn.is-active { background-color: var(--accent-light); color: var(--accent-color); border-color: var(--accent-highlight); font-weight: 500; }
.toolbar-btn svg { width: 14px; height: 14px; }
.toolbar-btn.relative-btn { position: relative; }
.toolbar-btn.dot-btn { color: #9ca3af; }
.toolbar-btn.dot-btn:hover { color: #6b7280; }
.toolbar-btn.font-btn { color: var(--text-secondary); }
.toolbar-btn.font-btn:hover { color: var(--text-primary); }
/* 字体下拉菜单 */
.font-dropdown { display: flex; flex-direction: column; gap: 2px; min-width: 120px; }
.font-dropdown .font-option { padding: 8px 12px; font-size: 0.9rem; cursor: pointer; transition: all 0.15s ease; color: var(--text-secondary); border-radius: var(--radius-sm); }
.font-dropdown .font-option:hover { background: var(--bg-subtle); color: var(--text-primary); }
.rich-textarea { width: 100%; flex: 1 1 auto; min-height: 80px; padding: 1rem; font-size: 1rem; background: transparent; border: none; border-radius: 0; line-height: 1.7; color: var(--text-primary); outline: none; white-space: pre-wrap; overflow-y: auto; overscroll-behavior: contain; word-wrap: break-word; font-family: 'AiDianQuYaYuan', sans-serif; }
.rich-textarea[placeholder]:empty:before { content: attr(placeholder); color: var(--text-muted); opacity: 0.6; }
/* 工作区编辑器样式 */
.rich-textarea div, .rich-textarea p { margin-bottom: 3px; }
.rich-textarea div:last-child, .rich-textarea p:last-child { margin-bottom: 0; }
/* 加粗字体默认三极圆体简 */
.rich-textarea b, .rich-textarea strong { font-weight: 700; font-family: 'SanJiYuanTiJian', sans-serif; }

/* === Skills Section === */
.resume-section-block.skills-section { padding: 0.5rem; margin-bottom: 1.25rem; gap: 0.5rem; border-radius: 8px; flex-shrink: 0; }
.resume-section-block.skills-section .skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 0.375rem; }
.skill-global-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.skill-row { display: flex; align-items: center; gap: 0.25rem; padding: 0.1875rem; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-subtle); transition: all 0.15s ease; }
.skill-row.selected { border-color: var(--accent-color); background-color: var(--accent-light); }
.skill-row .skill-name-wrapper { flex: 1; min-width: 0; }
.skill-row .skill-level-wrapper { display: flex; align-items: center; gap: 0.1875rem; flex-shrink: 0; }
.skill-row .styled-input-wrapper { flex: 1; min-width: 0; height: 28px; border-radius: 6px; }
.skill-row .styled-input-wrapper input { font-size: 0.9rem; padding: 0.3rem 0.5rem; }
/* 技能颜色圆点 */
.skill-color-dot { width: 12px; height: 12px; border-radius: 3px; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); flex-shrink: 0; transition: all 0.15s ease; }
.skill-color-dot:hover { transform: scale(1.15); box-shadow: 0 0 0 2px rgba(0,0,0,0.1); }
.skill-row.selected .skill-color-dot { box-shadow: 0 0 0 2px var(--accent-color); }
/* 颜色选择器 - 横向一排 */
.skill-color-bar { display: flex; align-items: center; gap: 3px; }
.skill-color-bar.global { padding: 3px 6px; background: var(--bg-subtle); border-radius: 6px; border: 1px solid var(--border-color); }
.skill-color-bar .color-chip { width: 12px; height: 12px; border-radius: 3px; cursor: pointer; border: 1px solid transparent; transition: all 0.15s ease; opacity: 0.7; }
.skill-color-bar .color-chip:hover { opacity: 1; transform: scale(1.15); }
.skill-color-bar .color-chip.active { opacity: 1; border-color: #333; box-shadow: 0 0 0 1px rgba(0,0,0,0.2); transform: scale(1.15); }

/* === Projects Section === */
.projects-section { gap: 0.5rem; }
.projects-container { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow: hidden; }
.project-edit-card { background-color: var(--bg-workspace); border: 1px solid var(--border-color); border-radius: 8px; padding: 0.75rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1 1 0; min-height: 0; overflow: hidden; }
.project-edit-header { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

/* === Cult UI Inspired Styles === */
.cult-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.cult-textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-primary);
    transition: all 0.2s;
    outline: none;
    resize: none;
}
.cult-textarea:hover, .cult-textarea:focus {
    border-color: rgba(0, 0, 0, 0.15);
    background: rgba(0, 0, 0, 0.02);
}

.product-image-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.product-image-item { aspect-ratio: 1; border-radius: var(--radius-sm); border: none; overflow: hidden; position: relative; background: var(--bg-subtle); }
.product-image-item.has-image { border-style: solid; border-color: var(--border-color); }
.image-upload-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; cursor: pointer; color: var(--text-muted); transition: all 0.2s; }
.image-upload-placeholder:hover { background: var(--bg-hover); color: var(--text-secondary); }
.image-upload-placeholder svg { width: 24px; height: 24px; opacity: 0.5; }
.image-upload-placeholder .upload-text { font-size: 0.65rem; }
.image-preview-wrapper { width: 100%; height: 100%; position: relative; }
.image-preview-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.image-actions { position: absolute; top: 4px; right: 4px; }
.image-action-btn { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,0.6); color: white; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; }
.image-action-btn:hover { background: rgba(0,0,0,0.8); }
.image-action-btn svg { width: 12px; height: 12px; }

.spec-edit-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }

.highlight-edit-card { background: var(--bg-workspace); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.625rem; margin-bottom: 0.5rem; }
.highlight-header { display: flex; align-items: center; gap: 0.5rem; }
.icon-select { width: 80px; padding: 0.375rem 0.5rem; border: 1px solid var(--border-color); border-radius: var(--radius-sm); background: var(--bg-main); font-size: 0.75rem; color: var(--text-primary); cursor: pointer; }
.icon-select:focus { outline: none; border-color: var(--accent-color); }

.review-edit-card { background: var(--bg-workspace); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 0.625rem; margin-bottom: 0.5rem; }
.review-header-row { display: flex; align-items: center; gap: 0.5rem; }

/* === Module Editor Transition === */
.module-fade-enter-active,
.module-fade-leave-active {
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.module-fade-enter-from {
  opacity: 0;
  transform: translateY(8px);
}
.module-fade-leave-to {
  opacity: 0;
  transform: translateY(-8px);
}

