/* ====== CSS Variables ====== */
:root {
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --accent: #14b8a6;
    --bg-dark: #0f0f1a;
    --bg-card: rgba(30, 30, 50, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    --gradient-1: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --gradient-2: linear-gradient(135deg, #14b8a6 0%, #6366f1 100%);
}

/* ====== Reset & Base ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ====== Background Animation ====== */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(20, 184, 166, 0.1) 0%, transparent 50%);
    animation: bgPulse 10s ease-in-out infinite;
}

@keyframes bgPulse {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* ====== Header ====== */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    backdrop-filter: blur(10px);
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--text-primary);
}

/* ====== Main Container ====== */
.main-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ====== Step Indicator ====== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step.completed {
    opacity: 1;
}

.step.completed .step-number {
    background: var(--accent);
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s;
}

.step.active .step-number {
    background: var(--gradient-1);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.step-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.step-line {
    width: 80px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
}

/* ====== Step Sections ====== */
.step-section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== Upload Area ====== */
.upload-container {
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    border: 2px dashed var(--border);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.upload-area.drag-over {
    border-color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
    transform: scale(1.02);
}

.upload-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.upload-area h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.upload-area p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-upload {
    padding: 0.75rem 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

/* 上传提示 */
.upload-hint {
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.5rem;
}

/* Files List - 多文件 */
.files-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.file-item {
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.file-item:hover {
    border-color: var(--accent);
}

/* File Info */
.file-info {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border);
}

.file-icon {
    font-size: 1.5rem;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    font-size: 0.9rem;
    word-break: break-all;
}

.file-size {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-remove,
.btn-remove-file {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.2);
    border: none;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-remove:hover,
.btn-remove-file:hover {
    background: #ef4444;
    color: white;
}

/* ====== Buttons ====== */
.btn-next {
    display: block;
    width: 100%;
    max-width: 400px;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
    background: var(--gradient-1);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-next:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====== Processing Animation ====== */
.processing-container {
    text-align: center;
    padding: 4rem 2rem;
}

.processing-animation {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
}

.brain-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4rem;
    z-index: 2;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.pulse-ring.delay-1 {
    animation-delay: 0.5s;
}

.pulse-ring.delay-2 {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 60px;
        height: 60px;
        opacity: 1;
    }

    100% {
        width: 150px;
        height: 150px;
        opacity: 0;
    }
}

.processing-container h2 {
    margin-bottom: 2rem;
}

.progress-bar {
    max-width: 400px;
    height: 8px;
    background: var(--bg-card);
    border-radius: 4px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--text-secondary);
}

/* ====== Template Selector New Layout ====== */
.template-selector-wrapper {
    display: flex;
    gap: 1.5rem;
    min-height: 600px;
    margin-bottom: 2rem;
}

/* 左侧分类导航 */
.template-categories {
    width: 180px;
    flex-shrink: 0;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 0.5rem;
    border: 1px solid var(--border);
}

.category-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
}

.category-item:hover {
    background: rgba(99, 102, 241, 0.1);
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.category-icon {
    font-size: 1.1rem;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* 右侧模板主区域 */
.template-main {
    flex: 1;
    min-width: 0;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.template-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.template-card.selected {
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(20, 184, 166, 0.3);
}

.template-card.selected::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.template-preview {
    width: 100%;
    aspect-ratio: 210/297;
    background: white;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    position: relative;
}

.template-preview-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 400%;
    height: 400%;
    transform: scale(0.25);
    transform-origin: top left;
    pointer-events: none;
}

.template-preview-inner .resume-content {
    padding: 2rem;
    font-size: 14px;
    min-height: 100%;
}

.template-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding-top: 0.5rem;
}

.template-info .template-icon {
    font-size: 1rem;
}

.template-info .template-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.template-style-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
}

.template-industry {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-name {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.template-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* 响应式 - 模板网格 */
@media (max-width: 1200px) {
    .templates-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .template-selector-wrapper {
        flex-direction: column;
    }

    .template-categories {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        padding: 0.75rem;
    }

    .category-item {
        margin-bottom: 0;
    }

    .templates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .templates-grid {
        grid-template-columns: 1fr;
    }
}


/* ====== Preview ====== */
.preview-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.resume-preview {
    padding: 40px;
    min-height: 600px;
    color: #1f2937;
    font-family: 'Microsoft YaHei', 'SimSun', serif;
}

/* ====== Download Buttons ====== */
.download-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-download.pdf {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-download.word {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn-restart {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-restart:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

/* ====== Features Section ====== */
.features-section {
    padding: 5rem 2rem;
    background: var(--bg-glass);
    text-align: center;
}

.features-section h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ====== Footer ====== */
.footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* ====== Responsive ====== */
@media (max-width: 768px) {
    .header {
        padding: 1rem 1.5rem;
    }

    .nav {
        display: none;
    }

    .step-indicator {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .step-line {
        width: 40px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .upload-area {
        padding: 2rem 1rem;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-download {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* ====== Resume Preview Styles ====== */
.resume-preview h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid;
    padding-bottom: 0.5rem;
}

.resume-preview .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.resume-preview h2 {
    font-size: 1.3rem;
    color: #374151;
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid;
}

.resume-preview h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.resume-preview .job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.resume-preview .job-title {
    font-weight: 600;
}

.resume-preview .job-date {
    color: #6b7280;
    font-size: 0.9rem;
}

.resume-preview ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.resume-preview li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.resume-preview .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-left: 0;
}

.resume-preview .skill-tag {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Template Color Themes */
.resume-preview.theme-blue h1,
.resume-preview.theme-blue h2 {
    color: #2563eb;
    border-color: #2563eb;
}

.resume-preview.theme-green h1,
.resume-preview.theme-green h2 {
    color: #059669;
    border-color: #059669;
}

.resume-preview.theme-purple h1,
.resume-preview.theme-purple h2 {
    color: #7c3aed;
    border-color: #7c3aed;
}

.resume-preview.theme-red h1,
.resume-preview.theme-red h2 {
    color: #dc2626;
    border-color: #dc2626;
}

.resume-preview.theme-orange h1,
.resume-preview.theme-orange h2 {
    color: #ea580c;
    border-color: #ea580c;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ====== Edit Page Styles ====== */
.edit-hint {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.download-hint {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.resume-preview.editable {
    cursor: text;
    outline: none;
    transition: box-shadow 0.3s;
}

.resume-preview.editable:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

.resume-preview.editable:hover {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.edit-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-secondary {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.final-preview {
    pointer-events: none;
}

/* ====== Work Experience Bullet Point Style ====== */
.resume-preview .highlight-item {
    display: flex;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.resume-preview .highlight-bullet {
    flex-shrink: 0;
    margin-right: 0.5rem;
    color: #374151;
}

.resume-preview .highlight-title {
    font-weight: 700;
    color: #1f2937;
    margin-right: 0;
}

.resume-preview .highlight-content {
    flex: 1;
}

/* Theme colors for highlight titles - All use black color */
/* 所有主题的标题都使用黑色，符合案例要求 */
.resume-preview .highlight-title {
    font-weight: 700;
    color: #1f2937 !important;
}

/* XX placeholder highlight - 红色显示待填充数据 */
.resume-preview .placeholder-data {
    background: #fee2e2;
    color: #dc2626;
    padding: 0 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* 编辑后的占位符变为普通黑色文本 */
.resume-preview .placeholder-edited {
    background: transparent;
    color: inherit;
    padding: 0;
    font-weight: inherit;
}

/* ====== 紧凑布局样式 ====== */
.resume-preview .job-header-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* 统一样式：时间 | 公司名 | 岗位名 字号和加粗一致 */
.resume-preview .job-header-uniform {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.resume-preview .header-item {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
}

.resume-preview .header-separator {
    color: #9ca3af;
    font-weight: 400;
    margin: 0 0.25rem;
}

/* Flex布局：左边时间+名称，右边岗位/角色/学历 */
.resume-preview .job-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.resume-preview .header-left {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.resume-preview .header-right {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-left: auto;
}

.resume-preview .company-name {
    font-weight: 700;
    font-size: 1rem;
    color: #1f2937;
}

.resume-preview .job-title-inline {
    color: #4b5563;
    font-size: 0.9rem;
}

.resume-preview .job-title-inline::before {
    content: "|";
    margin-right: 0.5rem;
    color: #d1d5db;
}

.resume-preview .job-date-inline {
    color: #6b7280;
    font-size: 0.85rem;
    margin-left: auto;
}

.resume-preview .compact {
    margin-bottom: 1rem;
}

.resume-preview .project-desc {
    margin: 0.5rem 0;
    color: #374151;
    line-height: 1.6;
}

/* 项目经历3部分格式 */
.resume-preview .project-section {
    margin: 0.2rem 0;
    color: #374151;
    line-height: 1.5;
    font-size: 0.9rem;
}

.resume-preview .project-section strong {
    color: #1f2937;
    font-weight: 600;
}

/* 荣誉证书紧凑布局 */
.resume-preview .honors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.resume-preview .honor-item {
    color: #374151;
    font-size: 0.9rem;
}

/* Step line for 5 steps - smaller */
@media (max-width: 900px) {
    .step-line {
        width: 50px;
    }
}

@media (max-width: 768px) {
    .step-line {
        width: 30px;
    }

    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .edit-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary,
    .edit-actions .btn-next {
        width: 100%;
        max-width: 300px;
    }
}

/* ==================== 5个独特布局模板样式 ==================== */

/* 通用样式 */
.resume-content .exp-item {
    margin-bottom: 1rem;
}

.resume-content .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.resume-content .exp-left {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.resume-content .exp-date {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
}

.resume-content .exp-sep {
    color: #9ca3af;
    margin: 0 0.25rem;
}

.resume-content .exp-company {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
}

.resume-content .exp-position {
    font-weight: 700;
    font-size: 0.9rem;
    color: #1f2937;
}

.resume-content .contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.resume-content .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-content .skill-tag {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: #374151;
}

/* ====== 模板1: 经典专业 ====== */
.layout-classic {
    padding: 0;
}

.layout-classic .classic-header {
    background: #1f2937;
    color: white;
    padding: 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.layout-classic .classic-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.layout-classic .classic-header .contact-row {
    justify-content: center;
    color: #d1d5db;
}

.layout-classic .classic-section {
    margin-bottom: 1.5rem;
}

.layout-classic .classic-section h2 {
    font-size: 1.1rem;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.layout-classic .section-divider {
    height: 2px;
    background: linear-gradient(to right, #1f2937, transparent);
    margin-bottom: 1rem;
}

/* ====== 模板2: 左右分栏 ====== */
.layout-two-column {
    display: flex;
    gap: 0;
    padding: 0;
    margin: -2rem;
}

.layout-two-column .left-column {
    width: 30%;
    background: #f3f4f6;
    padding: 1.5rem;
    min-height: 100%;
}

.layout-two-column .right-column {
    width: 70%;
    padding: 1.5rem 2rem;
}

.layout-two-column .profile-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.layout-two-column .avatar-placeholder {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
    font-weight: 700;
}

.layout-two-column .profile-section h2 {
    font-size: 1.25rem;
    color: #1f2937;
}

.layout-two-column .sidebar-section {
    margin-bottom: 1.5rem;
}

.layout-two-column .sidebar-section h3 {
    font-size: 0.9rem;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.25rem;
}

.layout-two-column .sidebar-section p {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.layout-two-column .main-section {
    margin-bottom: 1.5rem;
}

.layout-two-column .main-section h2 {
    font-size: 1rem;
    color: #3b82f6;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid #3b82f6;
    padding-bottom: 0.25rem;
}

/* ====== 模板3: 时间轴 ====== */
.layout-timeline {
    padding: 2rem;
}

.layout-timeline .timeline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #10b981;
}

.layout-timeline .timeline-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.layout-timeline .timeline-header .contact-row {
    justify-content: center;
    color: #6b7280;
}

.layout-timeline .timeline-section {
    margin-bottom: 2rem;
}

.layout-timeline .timeline-section h2 {
    font-size: 1rem;
    color: #10b981;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.layout-timeline .timeline-container {
    position: relative;
    padding-left: 30px;
}

.layout-timeline .timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #10b981;
}

.layout-timeline .timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.layout-timeline .timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px #10b981;
}

.layout-timeline .timeline-dot.project {
    background: #6366f1;
    box-shadow: 0 0 0 2px #6366f1;
}

.layout-timeline .timeline-date {
    font-size: 0.85rem;
    color: #10b981;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.layout-timeline .timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.layout-timeline .timeline-role {
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* ====== 模板4: 卡片式 ====== */
.layout-card {
    background: #f9fafb;
    padding: 1.5rem;
    margin: -2rem;
}

.layout-card .card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.layout-card .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.layout-card .header-card {
    text-align: center;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.layout-card .header-card h1 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.layout-card .header-card .contact-row {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.layout-card .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.layout-card .full-width {
    grid-column: 1 / -1;
}

.layout-card .half-width {
    grid-column: span 1;
}

.layout-card .card h2 {
    font-size: 1rem;
    color: #6366f1;
    margin-bottom: 1rem;
}

/* ====== 模板5: 极简黑白 ====== */
.layout-minimalist {
    padding: 3rem 2rem;
    font-family: 'Georgia', serif;
}

.layout-minimalist .mini-header {
    margin-bottom: 2rem;
}

.layout-minimalist .mini-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    color: #000;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.layout-minimalist .mini-divider {
    height: 1px;
    background: #000;
    margin: 0.5rem 0 1rem;
}

.layout-minimalist .mini-header .contact-row {
    color: #666;
    font-size: 0.9rem;
    gap: 2rem;
}

.layout-minimalist .mini-header .contact-row span::before {
    content: none;
}

.layout-minimalist .mini-section {
    margin-bottom: 2rem;
}

.layout-minimalist .mini-section h2 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000;
}

.layout-minimalist .exp-company {
    font-weight: 400;
    font-style: italic;
}

.layout-minimalist .exp-position {
    font-weight: 400;
}

.layout-minimalist .exp-date {
    font-weight: 400;
    color: #666;
}

.layout-minimalist .highlight-item {
    line-height: 1.6;
}

.layout-minimalist .skill-tag {
    background: transparent;
    border: 1px solid #000;
    border-radius: 0;
    color: #000;
}

/* 响应式 - 卡片布局 */
@media (max-width: 768px) {

    .layout-design .card-grid,
    .layout-card .card-grid {
        grid-template-columns: 1fr;
    }

    .layout-design .half-width,
    .layout-card .half-width {
        grid-column: span 1;
    }

    .layout-tech {
        flex-direction: column;
    }

    .layout-tech .left-column,
    .layout-tech .right-column {
        width: 100%;
    }
}

/* ==================== 8个行业模板通用样式 ==================== */

/* 通用经验条目 */
.resume-content .exp-item {
    margin-bottom: 1rem;
}

.resume-content .exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-content .exp-left {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.resume-content .exp-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: #374151;
}

.resume-content .exp-sep {
    color: #9ca3af;
    margin: 0 0.25rem;
}

.resume-content .exp-company {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
}

.resume-content .exp-position {
    font-weight: 600;
    font-size: 0.9rem;
}

.resume-content .contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.resume-content .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.resume-content .skill-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    color: white;
}

.resume-content .project-section {
    margin: 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ====== 模板1: 互联网科技 (左右分栏) ====== */
.layout-tech {
    display: flex;
    gap: 0;
    padding: 0;
    margin: -2rem;
}

.layout-tech .left-column {
    width: 30%;
    padding: 1.5rem;
    min-height: 100%;
}

.layout-tech .right-column {
    width: 70%;
    padding: 1.5rem 2rem;
}

.layout-tech .profile-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.layout-tech .avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
    font-weight: 700;
}

.layout-tech .profile-section h2 {
    font-size: 1.25rem;
    color: #1f2937;
}

.layout-tech .sidebar-section {
    margin-bottom: 1.5rem;
}

.layout-tech .sidebar-section h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid;
    padding-bottom: 0.25rem;
}

.layout-tech .sidebar-section p {
    font-size: 0.85rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.layout-tech .main-section {
    margin-bottom: 1.5rem;
}

.layout-tech .main-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid;
    padding-bottom: 0.25rem;
}

/* ====== 模板2: 金融财务 (经典单栏) ====== */
.layout-finance {
    padding: 0;
}

.layout-finance .classic-header {
    color: white;
    padding: 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.layout-finance .classic-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.layout-finance .classic-header .contact-row {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.layout-finance .classic-section {
    margin-bottom: 1.5rem;
}

.layout-finance .classic-section h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.layout-finance .section-divider {
    height: 2px;
    margin-bottom: 1rem;
}

/* ====== 模板3: 销售营销 (突出业绩) ====== */
.layout-sales {
    padding: 2rem;
}

.layout-sales .sales-header {
    text-align: center;
    margin-bottom: 2rem;
}

.layout-sales .sales-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.layout-sales .sales-header .header-bar {
    height: 4px;
    width: 100px;
    margin: 0.5rem auto 1rem;
    border-radius: 2px;
}

.layout-sales .sales-header .contact-row {
    justify-content: center;
    color: #6b7280;
}

.layout-sales .sales-section {
    margin-bottom: 1.5rem;
}

.layout-sales .sales-section h2 {
    color: white;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    margin-bottom: 1rem;
    display: inline-block;
    border-radius: 4px;
}

/* ====== 模板4: 设计创意 (卡片式) ====== */
.layout-design {
    padding: 1.5rem;
    margin: -2rem;
}

.layout-design .card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s;
}

.layout-design .card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.layout-design .header-card {
    text-align: center;
    color: white;
}

.layout-design .header-card h1 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.layout-design .header-card .contact-row {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

.layout-design .card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.layout-design .full-width {
    grid-column: 1 / -1;
}

.layout-design .half-width {
    grid-column: span 1;
}

.layout-design .card h2 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ====== 模板5: 教育培训 (时间轴) ====== */
.layout-education {
    padding: 2rem;
}

.layout-education .timeline-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid;
}

.layout-education .timeline-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.layout-education .timeline-header .contact-row {
    justify-content: center;
    color: #6b7280;
}

.layout-education .timeline-section {
    margin-bottom: 2rem;
}

.layout-education .timeline-section h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.layout-education .timeline-container {
    position: relative;
    padding-left: 30px;
}

.layout-education .timeline-container::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--timeline-color, #10b981);
}

.layout-education .timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 20px;
}

.layout-education .timeline-dot {
    position: absolute;
    left: -22px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
}

.layout-education .timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.layout-education .timeline-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.layout-education .timeline-role {
    font-weight: 400;
    color: #6b7280;
    margin-left: 0.5rem;
}

/* ====== 模板6: 医疗健康 (极简风) ====== */
.layout-medical {
    padding: 3rem 2rem;
}

.layout-medical .mini-header {
    margin-bottom: 2rem;
}

.layout-medical .mini-header h1 {
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.layout-medical .mini-divider {
    height: 2px;
    margin: 0.5rem 0 1rem;
}

.layout-medical .mini-header .contact-row {
    color: #666;
    font-size: 0.9rem;
    gap: 2rem;
}

.layout-medical .mini-section {
    margin-bottom: 2rem;
}

.layout-medical .mini-section h2 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid;
}

/* ====== 模板7: 政府机关 (中式风格) ====== */
.layout-government {
    padding: 2rem;
}

.layout-government .gov-header {
    text-align: center;
    margin-bottom: 2rem;
}

.layout-government .gov-border-top,
.layout-government .gov-border-bottom {
    height: 3px;
    margin: 0.5rem 0;
}

.layout-government .gov-header h1 {
    font-size: 2rem;
    color: #1f2937;
    margin: 1rem 0 0.25rem;
    letter-spacing: 0.2em;
}

.layout-government .gov-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.layout-government .gov-header .contact-row {
    justify-content: center;
    color: #374151;
    font-size: 0.9rem;
}

.layout-government .gov-section {
    margin-bottom: 1.5rem;
}

.layout-government .gov-section h2 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ====== 模板8: 通用标准 (平衡设计) ====== */
.layout-general {
    padding: 1.5rem 1rem;
}

.layout-general .general-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.layout-general .general-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.layout-general .general-header .contact-row {
    justify-content: center;
    color: #6b7280;
}

.layout-general .general-section {
    margin-bottom: 1.5rem;
}

.layout-general .general-section h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid;
}

/* ====== 颜色选择器 ====== */
.color-picker {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.color-option {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.color-option.selected {
    border-color: white;
    box-shadow: 0 0 0 2px var(--primary);
}

/* 模板卡片图标 */
.template-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.template-industry {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* 颜色选择器区域 */
.color-picker-section {
    text-align: center;
    margin: 2rem 0;
}

.color-picker-section h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* ==================== 新增12个模板样式 ==================== */

/* 通用标准头部 */
.standard-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.standard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 模板9: 人力资源 */
.layout-hr {
    padding: 2rem;
}

.layout-hr .standard-header {
    text-align: center;
}

/* 模板10: 法律法务 */
.layout-legal {
    padding: 2rem;
}

.layout-legal .legal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.layout-legal .legal-header h1 {
    font-size: 2rem;
    margin: 1rem 0 0.5rem;
}

.layout-legal .legal-border {
    height: 2px;
}

/* 模板11: 传媒新闻 */
.layout-media {
    padding: 2rem;
}

.layout-media .media-header {
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.layout-media .media-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 模板12: 物流供应链 */
.layout-logistics {
    padding: 2rem;
}

/* 模板13: 酒店餐饮 */
.layout-hospitality {
    padding: 2rem;
}

.layout-hospitality .hospitality-header {
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.layout-hospitality .hospitality-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 模板14: 房地产 */
.layout-realestate {
    padding: 0;
}

.layout-realestate .realestate-header {
    color: white;
    padding: 2rem;
    text-align: center;
    margin: -2rem -2rem 2rem -2rem;
}

.layout-realestate .realestate-header h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.layout-realestate .realestate-header .contact-row {
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
}

/* 模板15: 创业者 */
.layout-startup {
    padding: 2rem;
}

.layout-startup .startup-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.layout-startup .startup-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.layout-startup .startup-tagline {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* 模板16: 高管精英 */
.layout-executive {
    padding: 3rem 2rem;
}

.layout-executive .executive-header {
    text-align: center;
    margin-bottom: 2rem;
}

.layout-executive .executive-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.layout-executive .executive-line {
    height: 2px;
    width: 60px;
    margin: 0.5rem auto 1rem;
}

/* 模板17: 应届毕业生 */
.layout-fresher {
    padding: 2rem;
}

.layout-fresher .fresher-header {
    padding: 1.5rem;
    border-radius: 12px;
    margin: -2rem -2rem 2rem -2rem;
    text-align: center;
}

.layout-fresher .fresher-badge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.75rem;
    color: white;
}

.layout-fresher .fresher-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 模板18: 科研学术 */
.layout-researcher {
    padding: 2rem;
}

.layout-researcher .researcher-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.layout-researcher .researcher-header h1 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.layout-researcher .researcher-subtitle {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* 模板19: 咨询顾问 */
.layout-consultant {
    padding: 2rem;
}

.layout-consultant .consultant-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.layout-consultant .consultant-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* 模板20: 文艺创作 */
.layout-creative {
    padding: 2rem;
    text-align: center;
}

.layout-creative .creative-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.layout-creative .creative-header h1 {
    font-size: 2.5rem;
    font-weight: 300;
}

.layout-creative .creative-star {
    font-size: 1.5rem;
}

.layout-creative .general-section,
.layout-creative .main-section {
    text-align: left;
}

/* ====== Xiaohongshu Section ====== */
.xiaohongshu-section {
    padding: 3rem 2rem;
    background: var(--bg-dark);
}

.xhs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.xhs-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.xhs-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}

.xhs-author-info h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.xhs-name {
    color: #ff2442;
    font-weight: 700;
}

.xhs-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.xhs-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
    color: white;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.xhs-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 36, 66, 0.4);
}

.xhs-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.xhs-post-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.xhs-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 36, 66, 0.2);
}

.xhs-post-cover {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.xhs-post-info {
    padding: 0.75rem;
}

.xhs-post-title {
    font-size: 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.xhs-post-likes {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.xhs-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1200px) {
    .xhs-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .xhs-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .xhs-header {
        flex-direction: column;
        text-align: center;
    }

    .xhs-author {
        flex-direction: column;
    }
}

/* 粉丝数和认证标签样式 */
.xhs-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.xhs-fans {
    color: #ff2442;
    font-size: 0.9rem;
}

.xhs-fans strong {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.xhs-verified {
    color: var(--accent);
    font-size: 0.85rem;
}

/* 小红书弹窗预览 */
.xhs-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.xhs-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
}

.xhs-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.xhs-modal-close:hover {
    color: var(--text-primary);
}

.xhs-modal-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.xhs-modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.xhs-modal-hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.xhs-modal-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #ff2442, #ff6b6b);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.xhs-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 36, 66, 0.4);
}

/* ====== Photo Upload Section ====== */
.photo-upload-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.photo-upload-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.photo-label {
    font-weight: 600;
    font-size: 1rem;
}

.photo-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.photo-upload-area {
    width: 120px;
    height: 150px;
    border: 2px dashed var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.photo-upload-area:hover {
    border-color: var(--accent);
    background: rgba(20, 184, 166, 0.1);
}

.photo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.photo-icon {
    font-size: 2rem;
}

.photo-preview {
    width: 100%;
    height: 100%;
    position: relative;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-remove-photo {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.9);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-photo:hover {
    background: #ef4444;
}

/* 简历内照片样式 */
.resume-header-with-photo {
    display: flex;
    flex-direction: row-reverse;
    /* 照片显示在右边 */
    align-items: flex-start;
    gap: 1.5rem;
}

.resume-photo {
    width: 100px;
    height: 130px;
    border-radius: 6px;
    object-fit: contain;
    /* 保持原始比例不变形 */
    flex-shrink: 0;
    border: 2px solid var(--primary);
    background: #f8f9fa;
    /* 添加背景色填充空白 */
}

.resume-header-info {
    flex: 1;
}

/* 打印时照片样式 */
@media print {
    .resume-photo {
        width: 100px;
        height: 130px;
        border: 1px solid #ccc;
    }
}

/* ========== 侧边栏深色布局 (Sidebar Layout) ========== */
.layout-sidebar {
    display: flex;
    min-height: 100%;
}

.layout-sidebar .sidebar-dark {
    width: 220px;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    color: white;
}

.layout-sidebar .sidebar-photo {
    width: 100px;
    height: 130px;
    margin: 0 auto 1rem;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.layout-sidebar .sidebar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-sidebar .sidebar-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.layout-sidebar .sidebar-name {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 1rem;
}

.layout-sidebar .sidebar-contact {
    margin-bottom: 1.5rem;
}

.layout-sidebar .sidebar-contact p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.layout-sidebar .sidebar-contact .icon {
    font-size: 0.9rem;
}

.layout-sidebar .sidebar-skills h3 {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

.layout-sidebar .skill-bar-item {
    margin-bottom: 0.6rem;
}

.layout-sidebar .skill-bar-item .skill-name {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.9);
    display: block;
    margin-bottom: 0.3rem;
}

.layout-sidebar .skill-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.layout-sidebar .skill-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.layout-sidebar .sidebar-main {
    flex: 1;
    padding: 1.5rem;
    background: white;
}

.layout-sidebar .main-section {
    margin-bottom: 1.5rem;
}

.layout-sidebar .main-section h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #1f2937;
}

/* ========== 极简线条风布局 (Minimal Layout) ========== */
.layout-minimal {
    padding: 2rem;
    background: white;
}

.layout-minimal .minimal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.layout-minimal .minimal-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.layout-minimal .minimal-contact {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #6b7280;
}

.layout-minimal .minimal-contact span::before {
    content: '|';
    margin-right: 1.5rem;
    color: #d1d5db;
}

.layout-minimal .minimal-contact span:first-child::before {
    display: none;
}

.layout-minimal .minimal-photo {
    width: 80px;
    height: 100px;
    border-radius: 6px;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.layout-minimal .minimal-divider {
    height: 2px;
    margin: 1rem 0;
}

.layout-minimal .minimal-section {
    margin-bottom: 1.2rem;
}

.layout-minimal .capsule-title {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.layout-minimal .minimal-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.6;
}

.layout-minimal .skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.layout-minimal .skill-pill {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    background: transparent;
}

/* 时间轴样式增强 */
.timeline-section {
    position: relative;
    padding-left: 1rem;
}

.timeline-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 2rem;
    bottom: 0.5rem;
    width: 2px;
    background: var(--primary, #2563eb);
    opacity: 0.3;
}

/* ========== 深蓝侧边栏专业模板 (根据用户图片设计) ========== */
.layout-sidebar-pro {
    display: flex;
    min-height: 100%;
    background: white;
}

.layout-sidebar-pro .sidebar-pro {
    width: 240px;
    flex-shrink: 0;
    padding: 1.5rem 1rem;
    color: white;
}

/* 头像 */
.layout-sidebar-pro .pro-photo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
}

.layout-sidebar-pro .pro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-sidebar-pro .pro-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

/* 姓名和职位 */
.layout-sidebar-pro .pro-name {
    text-align: center;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: white;
}

.layout-sidebar-pro .pro-title {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* 信息区块 */
.layout-sidebar-pro .pro-block {
    margin-bottom: 1rem;
}

.layout-sidebar-pro .pro-block-title {
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    margin-bottom: 0.6rem;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.layout-sidebar-pro .pro-info-list {
    padding-left: 0.3rem;
}

.layout-sidebar-pro .pro-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.9);
}

.layout-sidebar-pro .pro-icon {
    font-size: 0.8rem;
    width: 18px;
}

/* 技能进度条 */
.layout-sidebar-pro .pro-skills {
    padding-left: 0.3rem;
}

.layout-sidebar-pro .pro-skill-item {
    margin-bottom: 0.5rem;
}

.layout-sidebar-pro .pro-skill-name {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.2rem;
}

.layout-sidebar-pro .pro-skill-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.layout-sidebar-pro .pro-skill-fill {
    height: 100%;
    border-radius: 3px;
}

/* 荣誉证书 */
.layout-sidebar-pro .pro-honors {
    padding-left: 0.3rem;
}

.layout-sidebar-pro .pro-honor-item {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.3rem;
}

/* 右侧主内容区 */
.layout-sidebar-pro .sidebar-pro-main {
    flex: 1;
    padding: 1.5rem;
    background: white;
}

.layout-sidebar-pro .pro-main-section {
    margin-bottom: 1.2rem;
}

.layout-sidebar-pro .pro-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding-left: 10px;
}

.layout-sidebar-pro .pro-content {
    padding-left: 0.5rem;
}

/* ========== 顶部色块模板 (根据用户图片设计) ========== */
.layout-header-pro {
    background: white;
    min-height: 100%;
}

.layout-header-pro .header-pro-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    color: white;
}

.layout-header-pro .header-pro-info {
    flex: 1;
}

.layout-header-pro .header-pro-name {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: white;
}

.layout-header-pro .header-pro-meta {
    margin-bottom: 0.5rem;
}

.layout-header-pro .header-pro-job {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.layout-header-pro .header-pro-contact {
    display: flex;
    gap: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
}

.layout-header-pro .header-pro-photo {
    width: 100px;
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.layout-header-pro .header-pro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-header-pro .header-pro-body {
    display: flex;
    padding: 1.5rem 2rem;
    gap: 2rem;
}

.layout-header-pro .header-pro-left {
    flex: 2;
}

.layout-header-pro .header-pro-right {
    flex: 1;
    min-width: 200px;
}

.layout-header-pro .header-section {
    margin-bottom: 1.2rem;
}

.layout-header-pro .header-section-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 2px solid currentColor;
}

.layout-header-pro .header-content {
    font-size: 0.85rem;
    line-height: 1.6;
}

.layout-header-pro .header-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.layout-header-pro .header-skill-tag {
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    font-size: 0.75rem;
    color: white;
}