﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@page {
    size: A4;
    margin: 10mm 15mm;
}

body {
    font-family: "Microsoft YaHei", "寰蒋闆呴粦", "PingFang SC", "Heiti SC", sans-serif;
    font-size: 9pt;
    line-height: 1.3;
    color: #333;
    background: #fff;
    position: relative;
}

/* 鍑犱綍绾圭悊鑳屾櫙 - 鍙湪绾圭悊閫夋嫨鍣ㄤ腑瀹氫箟 */
/* 榛樿涓嶅畾涔変吉鍏冪礌锛岄伩鍏嶆牱寮忓啿绐?*/

/* 鐙珛绾圭悊鏍峰紡 */
[data-texture="hexagon"] .resume-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l30 15v30l-30 15L0 45V15z' fill='none' stroke='%23000' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 60px 60px;
}

[data-texture="hexagon"] body::before,
[data-texture="hexagon"] body::after,
[data-texture="hexagon"] .resume-container::after {
    display: none;
}

[data-texture="diamond"] .resume-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 0l10 10v10l-10 10L10 20z' fill='none' stroke='%23000' stroke-width='0.5'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

[data-texture="diamond"] body::before,
[data-texture="diamond"] body::after,
[data-texture="diamond"] .resume-container::after {
    display: none;
}

[data-texture="circles"] .resume-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23000'/%3E%3Ccircle cx='5' cy='5' r='1' fill='%23000'/%3E%3Ccircle cx='35' cy='5' r='1' fill='%23000'/%3E%3Ccircle cx='5' cy='35' r='1' fill='%23000'/%3E%3Ccircle cx='35' cy='35' r='1' fill='%23000'/%3E%3C/svg%3E");
    background-size: 40px 40px;
}

[data-texture="circles"] body::before,
[data-texture="circles"] body::after,
[data-texture="circles"] .resume-container::after {
    display: none;
}

[data-texture="none"] body::before,
[data-texture="none"] body::after,
[data-texture="none"] .resume-container::before,
[data-texture="none"] .resume-container::after {
    display: none;
}

/* 鏋佺畝鍜屾墦鍗颁富棰樼Щ闄ょ汗鐞?*/
[data-theme="print"] body::before,
[data-theme="print"] body::after,
[data-theme="print"] .resume-container::before,
[data-theme="print"] .resume-container::after {
    display: none;
}

.resume-container {
    max-width: 210mm;
    margin: 0 auto;
    background: white;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 3px 12px 3px;
    margin-bottom: 10px;
    min-height: 156px;
    background: linear-gradient(135deg, #B0042F 0%, #D67E94 100%);
    z-index: 1;
}

.header-main {
    flex: 1;
    padding-left: 119px;
    padding-right: 15px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.name-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.name {
    font-size: 22pt;
    font-weight: 700;
    color: #FFFFFF;
    letter-spacing: 2px;
}

.name-title {
    font-size: 11pt;
    color: #FFF0F0;
    font-weight: 500;
}

.contact-info {
    font-size: 9pt;
    color: #FFF0F0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px 20px;
    min-width: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.contact-icon {
    color: #FFD0D8;
    font-size: 10pt;
}

.contact-label {
    font-weight: 600;
    color: #FFFFFF;
    white-space: nowrap;
}

.contact-value {
    color: #FFF0F0;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
    opacity: 0.92;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-link:hover {
    opacity: 1;
}

.contact-link:focus-visible {
    outline: 1px dashed currentColor;
    outline-offset: 2px;
}

.contact-divider {
    color: #FFD0D8;
    margin: 0 4px;
}

.avatar {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    width: 94px;
    height: 132px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 3px solid rgba(255, 255, 255, 0.3);
}

/* Content */
.content {
    padding: 0 3px 0 3px;
    position: relative;
    z-index: 1;
}

/* Section */
.section {
    margin-bottom: 6px;
}

.section-title {
    font-size: 10.5pt;
    font-weight: 700;
    color: var(--section-title-color);
    margin-bottom: 5px;
    padding: 4px 10px;
    background: var(--section-title-bg);
    border-left: 3px solid var(--primary-color);
    border-radius: 2px;
}

/* Different section title styles */
.section.highlight-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

.section.work-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

.section.early-career-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

.section.project-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

.section.edu-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
    padding: 4px 10px;
    display: block;
}

.section.cert-section-title .section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

/* Different divider styles */
.divider {
    margin: 10px 0;
}

.divider-solid {
    height: 1px;
    background: #e0e0e0;
}

.divider-dashed {
    border-bottom: 1px dashed #ccc;
    height: 0;
}

.divider-dotted {
    border-bottom: 2px dotted #ddd;
    height: 0;
}

.divider-gradient {
    height: 2px;
    background: linear-gradient(90deg, #333 0%, transparent 100%);
}

.divider-divider {
    border-top: 3px solid #AF032E;
    margin: 12px 0;
}

.divider-spacer {
    height: 15px;
}

/* Timeline Item */
.timeline-item {
    margin-bottom: 6px;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3px;
}

.timeline-title {
    font-size: 10pt;
    font-weight: 600;
    color: #333;
}

.timeline-period {
    font-size: 8.5pt;
    color: #666;
    font-weight: 500;
    letter-spacing: 0.2px;
    text-align: right;
    white-space: nowrap;
}

.timeline-subtitle {
    font-size: 9pt;
    color: #555;
    margin-bottom: 4px;
}

.timeline-content {
    font-size: 8pt;
    color: #666;
    line-height: 1.4;
    text-align: justify;
}

.timeline-content h3 {
    margin-left: 1em;
}

.timeline-content ul {
    list-style: none;
    margin-top: 4px;
    margin-left: 2em;
}

.timeline-content li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 2px;
}

.timeline-content li::before {
    content: '鈥?;
    position: absolute;
    left: 0;
    color: #AF032E;
    font-size: 8pt;
}

.timeline-content p {
    text-indent: 1em;
}

/* Highlight Box */
.highlight-section {
    background: #FBF2F4;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid #AF032E;
}

.highlight-item {
    margin-bottom: 4px;
    font-size: 8.5pt;
    line-height: 1.45;
}

.highlight-item:last-child {
    margin-bottom: 0;
}

.highlight-label {
    font-weight: 700;
    color: var(--primary-color);
}

/* Inline List */
.inline-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 15px;
    font-size: 9pt;
    color: #666;
}

.inline-list-item {
    display: flex;
    gap: 3px;
}

.inline-list-label {
    font-weight: 600;
    color: #333;
}

/* Two Column Layout for bottom sections */
.two-col-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.col-left, .col-right {
    overflow: hidden;
}

/* Texture Selector */
.texture-selector-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.texture-label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.texture-selector {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.texture-selector:hover {
    border-color: #999;
}

.texture-selector:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Theme Selector */
.theme-selector-wrapper {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.theme-label {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

.theme-selector {
    padding: 6px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.theme-selector:hover {
    border-color: #999;
}

.theme-selector:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Export Button */
.export-btn-wrapper {
    position: fixed;
    top: 140px;
    right: 20px;
    z-index: 1000;
}

.export-btn {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.export-btn:active {
    transform: translateY(0);
}

/* Theme Styles */
[data-theme="red"] {
    --primary-gradient: linear-gradient(135deg, #8B0000 0%, #B22222 50%, #CD5C5C 100%);
    --primary-color: #8B0000;
    --section-bg: #FFF5F5;
    --section-title-bg: #FFF0F0;
    --section-title-color: #8B0000;
}

[data-theme="blue"] {
    --primary-gradient: linear-gradient(135deg, #1a365d 0%, #2c5282 50%, #3182ce 100%);
    --primary-color: #1a365d;
    --section-bg: #f0f4f8;
    --section-title-bg: #e6f0ff;
    --section-title-color: #1a365d;
}

[data-theme="green"] {
    --primary-gradient: linear-gradient(135deg, #22543d 0%, #2f855a 50%, #48bb78 100%);
    --primary-color: #22543d;
    --section-bg: #f0fdf4;
    --section-title-bg: #f0fff4;
    --section-title-color: #22543d;
}

[data-theme="purple"] {
    --primary-gradient: linear-gradient(135deg, #44337a 0%, #553c9a 50%, #6b46c1 100%);
    --primary-color: #44337a;
    --section-bg: #faf5ff;
    --section-title-bg: #f3e8ff;
    --section-title-color: #44337a;
}

[data-theme="orange"] {
    --primary-gradient: linear-gradient(135deg, #7c2d12 0%, #9a3412 50%, #c2410c 100%);
    --primary-color: #7c2d12;
    --section-bg: #fff7ed;
    --section-title-bg: #ffedd5;
    --section-title-color: #7c2d12;
}

/* 鏋佺畝绾挎潯椋庢牸 - 鍘绘帀鑳屾櫙鑹?*/
[data-theme="minimal"] {
    --primary-gradient: linear-gradient(135deg, #666666 0%, #999999 100%);
    --primary-color: #333333;
    --section-bg: transparent;
    --section-title-bg: transparent;
    --section-title-color: #333333;
    --header-style: 'minimal';
}

/* 榛戠櫧鎵撳嵃椋庢牸 - 绾粦鐧?*/
[data-theme="print"] {
    --primary-gradient: linear-gradient(135deg, #000000 0%, #333333 100%);
    --primary-color: #000000;
    --section-bg: #ffffff;
    --section-title-bg: #ffffff;
    --section-title-color: #000000;
    --header-style: 'print';
}

/* 鐜颁唬鍗＄墖椋庢牸 */
[data-theme="card"] {
    --primary-gradient: linear-gradient(135deg, #434343 0%, #000000 100%);
    --primary-color: #000000;
    --section-bg: #f8f9fa;
    --section-title-bg: #e9ecef;
    --section-title-color: #212529;
    --header-style: 'card';
}

/* 鍟嗗姟涓撲笟椋庢牸 */
[data-theme="professional"] {
    --primary-gradient: linear-gradient(135deg, #1f2937 0%, #374151 50%, #4b5563 100%);
    --primary-color: #1f2937;
    --section-bg: #f3f4f6;
    --section-title-bg: #e5e7eb;
    --section-title-color: #1f2937;
    --header-style: 'professional';
}

[data-theme="audit"] {
    --primary-gradient: linear-gradient(135deg, #0f3d5e 0%, #1d5f8a 55%, #2f7aa8 100%);
    --primary-color: #0f3d5e;
    --section-bg: #f2f7fb;
    --section-title-bg: #e6f0f7;
    --section-title-color: #0f3d5e;
    --header-style: 'audit';
}

[data-theme="executive"] {
    --primary-gradient: linear-gradient(135deg, #0b1f33 0%, #16324f 55%, #254766 100%);
    --primary-color: #0b1f33;
    --section-bg: #f4f6f8;
    --section-title-bg: #e6ebf0;
    --section-title-color: #0b1f33;
    --header-style: 'executive';
}

[data-theme="professional_refined"] {
    --primary-gradient: linear-gradient(135deg, #1b2430 0%, #2b3748 55%, #39495d 100%);
    --primary-color: #1b2430;
    --section-bg: #f4f5f7;
    --section-title-bg: #e4e8ee;
    --section-title-color: #1b2430;
    --header-style: 'professional_refined';
}

[data-theme="audit_refined"] {
    --primary-gradient: linear-gradient(135deg, #123a56 0%, #1d5374 55%, #2a6787 100%);
    --primary-color: #123a56;
    --section-bg: #f3f8fb;
    --section-title-bg: #e3edf4;
    --section-title-color: #123a56;
    --header-style: 'audit_refined';
}

[data-theme="executive_refined"] {
    --primary-gradient: linear-gradient(135deg, #0f1c2c 0%, #1a2f47 55%, #24405f 100%);
    --primary-color: #0f1c2c;
    --section-bg: #f5f7f9;
    --section-title-bg: #e4eaf0;
    --section-title-color: #0f1c2c;
    --header-style: 'executive_refined';
}

/* Apply theme variables */
.header {
    background: var(--primary-gradient);
}

/* 鏋佺畝绾挎潯椋庢牸鐗规畩鏍峰紡 */
[data-theme="minimal"] .header {
    background: #ffffff;
}

[data-theme="minimal"] .header .name {
    color: #333333;
}

[data-theme="minimal"] .header .name-title {
    color: #666666;
}

[data-theme="minimal"] .header .contact-label,
[data-theme="minimal"] .header .contact-value {
    color: #333333;
}

[data-theme="minimal"] .header .contact-divider {
    color: #cccccc;
}

[data-theme="minimal"] .section-title {
    background: transparent !important;
    color: #2f3640 !important;
    border-left: none !important;
    border-bottom: 1px solid #d8dde3;
    padding: 0 0 8px 0;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    position: relative;
}

[data-theme="minimal"] .section-title::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #6b7280;
    margin-right: 8px;
    vertical-align: middle;
    transform: translateY(-2px);
}

[data-theme="minimal"] .highlight-section {
    background: #fcfcfd !important;
    border: 1px solid #e3e6ea !important;
    border-left: 2px solid #7c8795 !important;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 2px;
}

[data-theme="minimal"] .highlight-label {
    color: #2f3640 !important;
    text-decoration: none;
}

/* 榛戠櫧鎵撳嵃椋庢牸鐗规畩鏍峰紡 */
[data-theme="print"] .header {
    background: #ffffff;
    color: #000000;
}

[data-theme="print"] .header .name {
    color: #000000;
}

[data-theme="print"] .header .name-title,
[data-theme="print"] .header .contact-label,
[data-theme="print"] .header .contact-value {
    color: #000000;
}

[data-theme="print"] .section-title {
    background: rgb(242, 242, 242) !important;
    color: #000000 !important;
    border-left: 1px solid #000000 !important;
    border-bottom: 1px solid #000000 !important;
    border-radius: 0;
    padding: 5px 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

[data-theme="print"] .highlight-section {
    background: #f5f5f5 !important;
    border: 1.5px solid #000000 !important;
    border-left: 4px double #000000 !important;
    border-radius: 0;
    padding: 8px 12px;
}

[data-theme="print"] .highlight-label {
    color: #000000 !important;
    text-decoration: none;
    font-weight: 700;
}

/* 鐜颁唬鍗＄墖椋庢牸鐗规畩鏍峰紡 */
[data-theme="card"] .header {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding-left: 3px;
    padding-right: 3px;
}

[data-theme="card"] .section-title {
    background: #e9ecef !important;
    border-radius: 6px;
    border-left: none;
    padding: 8px 12px;
}

[data-theme="card"] .highlight-section {
    background: #f8f9fa !important;
    border-radius: 6px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 鍟嗗姟涓撲笟椋庢牸鐗规畩鏍峰紡 */
[data-theme="professional"] .header,
[data-theme="professional_refined"] .header {
    background: var(--primary-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="professional"] .header .name,
[data-theme="professional"] .header .name-title,
[data-theme="professional"] .header .contact-label,
[data-theme="professional"] .header .contact-value,
[data-theme="professional_refined"] .header .name,
[data-theme="professional_refined"] .header .name-title,
[data-theme="professional_refined"] .header .contact-label,
[data-theme="professional_refined"] .header .contact-value {
    color: #e5e7eb;
}

[data-theme="professional"] .header .contact-divider,
[data-theme="professional_refined"] .header .contact-divider {
    color: #cbd5e1;
}

[data-theme="professional"] .section-title,
[data-theme="professional_refined"] .section-title {
    background: var(--section-title-bg) !important;
    color: var(--section-title-color) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-bottom: 1px solid #d1d5db;
    padding: 8px 12px;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 10pt;
}

[data-theme="professional"] .highlight-section,
[data-theme="professional_refined"] .highlight-section {
    background: var(--section-bg) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-right: 1px solid #d1d5db;
    border-radius: 0 4px 4px 0;
}

[data-theme="professional"] .timeline-period,
[data-theme="audit"] .timeline-period,
[data-theme="executive"] .timeline-period,
[data-theme="professional_refined"] .timeline-period,
[data-theme="audit_refined"] .timeline-period,
[data-theme="executive_refined"] .timeline-period {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 999px;
    padding: 1px 8px;
}

[data-theme="audit"] .header,
[data-theme="executive"] .header,
[data-theme="audit_refined"] .header,
[data-theme="executive_refined"] .header {
    background: var(--primary-gradient);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="audit"] .header .name,
[data-theme="audit"] .header .name-title,
[data-theme="audit"] .header .contact-label,
[data-theme="audit"] .header .contact-value,
[data-theme="audit_refined"] .header .name,
[data-theme="audit_refined"] .header .name-title,
[data-theme="audit_refined"] .header .contact-label,
[data-theme="audit_refined"] .header .contact-value,
[data-theme="executive"] .header .name,
[data-theme="executive"] .header .name-title,
[data-theme="executive"] .header .contact-label,
[data-theme="executive"] .header .contact-value,
[data-theme="executive_refined"] .header .name,
[data-theme="executive_refined"] .header .name-title,
[data-theme="executive_refined"] .header .contact-label,
[data-theme="executive_refined"] .header .contact-value {
    color: #e6edf5;
}

[data-theme="audit"] .header .contact-divider,
[data-theme="audit_refined"] .header .contact-divider,
[data-theme="executive"] .header .contact-divider,
[data-theme="executive_refined"] .header .contact-divider {
    color: #c7d4e3;
}

[data-theme="audit"] .section-title,
[data-theme="audit_refined"] .section-title,
[data-theme="executive"] .section-title,
[data-theme="executive_refined"] .section-title {
    background: var(--section-title-bg) !important;
    color: var(--section-title-color) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-bottom: 1px solid #d5dde6;
    padding: 8px 12px;
    letter-spacing: 0.3px;
    font-size: 10pt;
}

[data-theme="audit"] .highlight-section,
[data-theme="audit_refined"] .highlight-section,
[data-theme="executive"] .highlight-section,
[data-theme="executive_refined"] .highlight-section {
    background: var(--section-bg) !important;
    border-left: 4px solid var(--primary-color) !important;
    border-right: 1px solid #d5dde6;
    border-radius: 0 4px 4px 0;
}

/* 鍑犱綍绾圭悊澧炲己 - 涓嶅悓涓婚鐨勭汗鐞嗗彉鍖?*/
[data-theme="red"] body::before,
[data-theme="red"] body::after {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(139,0,0,0.15) 2%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(139,0,0,0.15) 2%, transparent 2%);
    opacity: 0.1;
}

[data-theme="red"] body::after {
    background-image:
        linear-gradient(45deg, rgba(139,0,0,0.08) 25%, transparent 25%, transparent 75%, rgba(139,0,0,0.08) 75%, rgba(139,0,0,0.08)),
        linear-gradient(45deg, rgba(139,0,0,0.08) 25%, transparent 25%, transparent 75%, rgba(139,0,0,0.08) 75%, rgba(139,0,0,0.08));
}

[data-theme="blue"] body::before,
[data-theme="blue"] body::after {
    background-image:
        radial-gradient(circle at 25% 25%, rgba(26,54,93,0.15) 2%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(26,54,93,0.15) 2%, transparent 2%);
    opacity: 0.1;
}

[data-theme="blue"] body::after {
    background-image:
        linear-gradient(45deg, rgba(26,54,93,0.08) 25%, transparent 25%, transparent 75%, rgba(26,54,93,0.08) 75%, rgba(26,54,93,0.08)),
        linear-gradient(45deg, rgba(26,54,93,0.08) 25%, transparent 25%, transparent 75%, rgba(26,54,93,0.08) 75%, rgba(26,54,93,0.08));
}

/* 娣诲姞鍏竟褰㈢汗鐞?*/

/* Apply theme variables */
.header {
    background: var(--primary-gradient);
}

.section-title {
    background: var(--section-title-bg);
    color: var(--section-title-color);
    border-left-color: var(--primary-color);
}

.highlight-section {
    background: var(--section-bg);
    border-left-color: var(--primary-color);
}

.highlight-label {
    color: var(--primary-color);
}

.timeline-content li::before {
    color: var(--primary-color);
}

.divider-divider {
    border-top-color: var(--primary-color);
}

/* Print Styles */
@media print {
    body {
        background: white;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .resume-container {
        box-shadow: none;
        max-width: none;
    }
    .section {
        page-break-inside: avoid;
    }
    .header {
        background: var(--primary-gradient) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    [data-theme="minimal"] .header,
    [data-theme="print"] .header {
        background: #ffffff !important;
        color: #000000 !important;
    }
    [data-theme="minimal"] .header .name,
    [data-theme="minimal"] .header .name-title,
    [data-theme="minimal"] .header .contact-label,
    [data-theme="minimal"] .header .contact-value,
    [data-theme="minimal"] .header .contact-divider,
    [data-theme="print"] .header .name,
    [data-theme="print"] .header .name-title,
    [data-theme="print"] .header .contact-label,
    [data-theme="print"] .header .contact-value,
    [data-theme="print"] .header .contact-divider {
        color: #000000 !important;
    }
    body::before,
    body::after,
    .resume-container::before,
    .resume-container::after {
        display: none !important;
    }
    .section-title {
        background: var(--section-title-bg) !important;
        color: var(--section-title-color) !important;
        border-left-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .highlight-section {
        background: var(--section-bg) !important;
        border-left-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .highlight-label {
        color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .timeline-content li::before {
        color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .divider-divider {
        border-top-color: var(--primary-color) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 14px;
        font-size: 8.6pt;
    }
    .contact-item {
        flex-wrap: nowrap;
    }
    .contact-value,
    .contact-link {
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
    }
    .texture-selector-wrapper,
    .theme-selector-wrapper,
    .export-btn-wrapper {
        display: none !important;
    }
    .notification {
        display: none !important;
    }
}

@media screen and (max-width: 1200px) {
    .texture-selector-wrapper,
    .theme-selector-wrapper,
    .export-btn-wrapper {
        display: none !important;
    }
}

@media screen and (max-width: 980px) {
    .contact-info {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 12px;
        font-size: 8.6pt;
    }
    .contact-item {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 2px 6px;
    }
    .contact-divider {
        margin: 0 2px;
    }
}

@media screen and (max-width: 680px) {
    .name-row {
        flex-wrap: wrap;
        gap: 4px 10px;
    }
    .contact-info {
        grid-template-columns: 1fr;
        gap: 4px 0;
        font-size: 8.3pt;
    }
    .contact-divider {
        display: none;
    }
}

