/* 导入通用样式 */
@import 'templates/common.css';

/* 导入各个模板样式 */
@import 'templates/modern.css';
@import 'templates/professional.css';
@import 'templates/creative.css';
@import 'templates/luxury.css';

/* 通用模板样式 */
.resume-template {
    max-width: 210mm;  /* A4纸宽度 */
    margin: 0 auto;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.4;
    color: #333;
}

.section {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1.1rem;
}

/* 现代简约模板 */
.modern-template {
    padding: 1.5rem;
    background: white;
}

.modern-template .header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--primary-color);
}

.modern-template .name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.modern-template .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #666;
}

.modern-template .contact-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-template .summary {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
    margin-bottom: 1rem;
}

.modern-template .item {
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--primary-color);
}

.modern-template .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.modern-template .item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.modern-template .item-subtitle {
    color: #666;
    font-size: 0.9rem;
}

.modern-template .item-content {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

.modern-template .skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}

.modern-template .skill-entry {
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
}

.modern-template .skill-entry span {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.modern-template .skill-level {
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* 专业商务模板 */
.professional-template {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    padding: 0;
    background: white;
}

.professional-template .sidebar {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
}

.professional-template .main-content {
    padding: 1.5rem;
}

.professional-template .name {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding-bottom: 0.75rem;
}

.professional-template .contact-info {
    margin-bottom: 1.5rem;
}

.professional-template .contact-info p {
    margin: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.professional-template .section-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.professional-template .main-content .section-title {
    color: var(--primary-color);
    font-size: 1.25rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.25rem;
}

/* 创意设计模板 */
.creative-template {
    background: white;
    padding: 1.5rem;
}

.creative-template .header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.creative-template .header::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.creative-template .name {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.75rem;
}

.creative-template .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #666;
}

.creative-template .section {
    margin-bottom: 2rem;
}

.creative-template .section-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.creative-template .item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

.creative-template .item:hover {
    transform: translateX(8px);
}

.creative-template .skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
}

.creative-template .skill-entry {
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    background: #f8f9fa;
}

.creative-template .skill-level {
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin-top: 0.25rem;
}

/* 打印样式优化 */
@media print {
    body {
        background: white;
    }
    
    .resume-template {
        max-width: none;
        margin: 0;
        padding: 0;
    }
    
    .editor-sidebar,
    .navbar,
    .preview-panel {
        display: none;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* 调整预览面板的滚动条样式 */
.preview-panel::-webkit-scrollbar {
    width: 8px;
}

.preview-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.preview-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.preview-panel::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* 兴趣爱好部分样式 */
.interests-section,
.interest-section {
    margin-bottom: 1rem;
}

.interest-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.interest-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.interest-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.interest-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* 推荐人部分样式 */
.references-section,
.reference-section {
    margin-bottom: 1rem;
}

.reference-item {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.reference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.reference-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.reference-position {
    color: #666;
    font-size: 0.9rem;
}

.reference-company {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.reference-contact {
    color: #666;
    font-size: 0.9rem;
}

/* 专业模板特定样式 */
.professional-template .interest-item,
.professional-template .reference-item {
    border-left: 3px solid var(--primary-color);
}

/* 创意模板特定样式 */
.creative-template .interest-item,
.creative-template .reference-item {
    transition: transform 0.3s;
}

.creative-template .interest-item:hover,
.creative-template .reference-item:hover {
    transform: translateX(8px);
} 