/* 明亮专业型简历样式 */

:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-bg: #eff6ff;
    --secondary: #8b5cf6;
    --gradient: linear-gradient(135deg, #2563eb, #8b5cf6);
    --text-dark: #1e293b;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* 装饰性背景元素 */
.decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.5;
}

.deco-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.deco-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08), transparent 70%);
    bottom: 20%;
    left: -100px;
    animation: float 25s ease-in-out infinite reverse;
}

.deco-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06), transparent 70%);
    top: 50%;
    right: 10%;
    animation: float 18s ease-in-out infinite;
}

.deco-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(37, 99, 235, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 20px);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.7;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary);
}

/* Hero 区域 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--primary-bg) 100%);
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.hero-label {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--primary);
}

.hero-desc {
    font-size: 17px;
    color: var(--text-gray);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
}

.stat {
    text-align: center;
}

.stat-num {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-text {
    font-size: 13px;
    color: var(--text-light);
}

.btn-primary {
    display: inline-block;
    background: var(--gradient);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.hero-photo {
    flex-shrink: 0;
}

.photo-frame {
    width: 280px;
    height: 340px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 16px;
    position: relative;
}

.photo-frame::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid var(--primary);
    border-radius: 16px;
    z-index: -1;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
}

/* 通用章节样式 */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg-gray);
}

.section-skills {
    background: linear-gradient(180deg, #f0f5ff 0%, #e8f0fe 100%);
}

.section-achievements {
    background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
}

.section-contact {
    background: linear-gradient(180deg, #f0fdfa 0%, #e6fffa 100%);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* 关于我 */
.about-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.about-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.about-card:hover::before {
    opacity: 1;
}

.about-card-wide {
    grid-column: span 2;
}

.about-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.info-list {
    list-style: none;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-gray);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li span {
    color: var(--text-dark);
    font-weight: 500;
}

.about-text {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 技能 - 卡片式设计 */
.skills-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.skill-detail-card {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.skill-detail-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.skill-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.skill-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-detail-icon {
    width: 52px;
    height: 52px;
    background: var(--gradient);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.skill-detail-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.skill-detail-desc {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.skill-checklist {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.skill-checklist li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.skill-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 14px;
}

/* 工作经历 */
.experience-timeline {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    padding-left: 30px;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary);
}

.experience-item {
    position: relative;
    margin-bottom: 32px;
}

.exp-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.exp-content {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: var(--shadow);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.exp-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.exp-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

.exp-position {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.exp-duties {
    list-style: none;
    padding-left: 0;
}

.exp-duties li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.exp-duties li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

/* 业绩 */
.achievements {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.achievement {
    background: white;
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.achievement::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--gradient);
    opacity: 0.05;
    border-radius: 50%;
    transition: all 0.3s;
}

.achievement:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.achievement:hover::before {
    opacity: 0.1;
    transform: scale(1.5);
}

.ach-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.achievement h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.achievement p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 联系方式 */
.contact-box {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-icon {
    font-size: 32px;
}

.contact-label {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.contact-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

/* 页脚 */
.footer {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 32px 0;
    text-align: center;
    font-size: 14px;
}

/* 响应式 */
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .skills-card-grid,
    .achievements {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-card-wide {
        grid-column: span 1;
    }

    .nav-menu {
        display: none;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-num {
        font-size: 24px;
    }

    .contact-box {
        flex-direction: column;
        align-items: center;
    }

    .skill-detail-card {
        padding: 24px;
    }

    .skill-detail-header {
        gap: 12px;
    }

    .skill-detail-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .skill-detail-title {
        font-size: 18px;
    }

    .skill-detail-desc {
        font-size: 13px;
    }

    .skill-checklist {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .skill-checklist li {
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
    }

    .photo-frame {
        width: 200px;
        height: 260px;
    }

    .achievements {
        grid-template-columns: 1fr;
    }
}

/* 打印样式 */
@media print {
    .navbar {
        display: none;
    }

    .hero {
        padding-top: 40px;
    }

    .section {
        padding: 40px 0;
    }
}