* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    line-height: 1.6;
    color: #e6edf3;
    background-color: #050810;
    background-image: url('images/bg-galaxy.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
    image-rendering: -webkit-optimize-contrast;
}

/* 银河背景上的轻蒙版（保证文字可读，但银河清晰可见） */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(6, 9, 18, 0.25) 0%,
        rgba(6, 9, 18, 0.15) 50%,
        rgba(6, 9, 18, 0.3) 100%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 顶部导航 - 深色半透明毛玻璃 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo h2 {
    color: #ffffff;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #9ba8b8;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4ff;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00d4ff;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #e6edf3;
    border-radius: 2px;
}

/* Hero 区 - 深色径向渐变（半透明，让银河透出） */
.hero {
    padding: 120px 0 80px;
    background:
        radial-gradient(ellipse at top, rgba(0, 212, 255, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(6, 9, 18, 0.45) 0%, rgba(10, 14, 26, 0.6) 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
    line-height: 1.2;
}

.highlight {
    color: #00d4ff;
    text-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}

.subtitle {
    font-size: 20px;
    margin-bottom: 20px;
    color: #9ba8b8;
    opacity: 1;
}

.description {
    font-size: 16px;
    color: #b8c5d6;
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn-primary {
    background: #00d4ff;
    color: #0a0e1a;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    background: #00b8e6;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(0, 212, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #00d4ff;
    color: #00d4ff;
}

.btn-full {
    width: 100%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.profile-picture {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(0, 212, 255, 0.4);
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.25), 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-trigger {
    display: block;
    cursor: pointer;
    position: relative;
}

.upload-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.25s ease;
    z-index: 2;
    pointer-events: none;
}

.upload-hint {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    background: rgba(0, 212, 255, 0.92);
    color: #0a0e1a;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 3;
    white-space: nowrap;
    font-weight: 600;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.4);
}

.upload-trigger:hover::after {
    background: rgba(0, 0, 0, 0.35);
}

.upload-trigger:hover .upload-hint {
    opacity: 1;
    transform: translateX(-50%) translateY(-2px);
}

/* 通用 section */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #00d4ff;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
}

/* 黑白交替：奇数 section 更深，偶数 section 稍亮 */
.about {
    background: rgba(6, 9, 18, 0.55);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h3 {
    font-size: 24px;
    color: #00d4ff;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: #b8c5d6;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 14px;
    color: #6b7a8e;
    font-weight: 500;
}

.detail-value {
    font-size: 16px;
    color: #e6edf3;
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    backdrop-filter: blur(8px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #00d4ff;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.stat-label {
    font-size: 14px;
    color: #9ba8b8;
    margin-top: 5px;
}

/* experience - 稍亮交替 */
.experience {
    background: rgba(10, 14, 26, 0.35);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(0, 212, 255, 0.4), rgba(255, 255, 255, 0.1));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
}

.timeline-item:nth-child(odd) .timeline-content {
    text-align: right;
    margin-right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    margin-left: calc(50% + 30px);
}

.timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #00d4ff;
    color: #0a0e1a;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 1;
    box-shadow: 0 0 16px rgba(0, 212, 255, 0.5);
}

.timeline-content {
    width: calc(50% - 30px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    backdrop-filter: blur(8px);
}

.timeline-content h3 {
    color: #ffffff;
    margin-bottom: 8px;
}

.timeline-company {
    color: #00d4ff;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-description {
    color: #b8c5d6;
    font-size: 14px;
    line-height: 1.6;
}

/* skills - 深色交替 */
.skills {
    background: rgba(6, 9, 18, 0.55);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-size: 18px;
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-name {
    font-size: 14px;
    color: #e6edf3;
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff 0%, #00b8e6 100%);
    border-radius: 4px;
    transition: width 1s ease;
    box-shadow: 0 0 12px rgba(0, 212, 255, 0.4);
}

/* portfolio - 稍亮交替 */
.portfolio {
    background: rgba(10, 14, 26, 0.35);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(8px);
}

.portfolio-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.15);
}

.portfolio-image {
    height: 200px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.portfolio-content h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 20px;
}

.portfolio-category {
    color: #00d4ff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.portfolio-description {
    color: #b8c5d6;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

/* certificates - 深色交替 */
.certificates {
    background: rgba(6, 9, 18, 0.55);
}

.section-subtitle {
    text-align: center;
    color: #9ba8b8;
    font-size: 16px;
    margin-top: -40px;
    margin-bottom: 50px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
}

.cert-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}

.cert-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 1px;
}

.cert-badge-junior {
    background: rgba(0, 212, 255, 0.15);
    color: #00d4ff;
    border: 1px solid rgba(0, 212, 255, 0.4);
}

.cert-badge-senior {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cert-image {
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #131a2e, #0a0e1a);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cert-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cert-card:hover .cert-image img {
    transform: scale(1.04);
}

.cert-content {
    padding: 24px 26px 28px;
}

.cert-content h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 20px;
    font-weight: 700;
}

.cert-org {
    color: #00d4ff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 18px;
}

.cert-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}

.cert-meta-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.cert-meta-label {
    color: #6b7a8e;
    font-weight: 500;
}

.cert-meta-value {
    color: #e6edf3;
    font-weight: 600;
    font-family: 'Consolas', 'Courier New', monospace;
}

/* contact - 稍亮交替 */
.contact {
    background: rgba(10, 14, 26, 0.35);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    color: #00d4ff;
    margin-bottom: 15px;
    font-size: 24px;
}

.contact-info p {
    color: #b8c5d6;
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
    color: #e6edf3;
}

.contact-item .icon {
    font-size: 20px;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
}

.contact-form h3 {
    color: #ffffff;
    margin-bottom: 25px;
    font-size: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 16px;
    color: #e6edf3;
    font-family: 'Noto Sans SC', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6b7a8e;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
}

/* footer - 最深 */
.footer {
    background: rgba(6, 9, 18, 0.65);
    color: #9ba8b8;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-content p {
    margin-bottom: 8px;
    opacity: 0.8;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0e1a;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 212, 255, 0.5);
}

/* 选中文本 */
::selection {
    background: rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 26, 0.98);
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .profile-picture {
        width: 200px;
        height: 200px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 80px;
        margin-right: 0;
        text-align: left;
        width: calc(100% - 80px);
    }

    .timeline-date {
        left: 30px;
        transform: translateX(-50%);
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .cert-image {
        height: 220px;
    }

    .cert-meta-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }
}

/* ============================================
   科幻增强层 - 全局背景 / 鼠标光晕 / 扫描线 / 网格
   ============================================ */

body {
    position: relative;
    overflow-x: hidden;
}

/* 全局网格背景（cyber 网格线） */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 90%);
}

/* 全局顶部扫描线（持续上下滑动） */
.global-scanline {
    position: fixed;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.4),
        rgba(0, 212, 255, 0.8),
        rgba(0, 212, 255, 0.4),
        transparent);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
    z-index: 9999;
    pointer-events: none;
    top: 0;
    animation: scanline-move 8s linear infinite;
    opacity: 0.6;
}

@keyframes scanline-move {
    0% { top: -2px; opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { top: 100vh; opacity: 0; }
}

/* 星空粒子画布 */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* 鼠标拖尾画布 */
#mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

/* 鼠标光晕（青色径向光球跟随） */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(0, 212, 255, 0.18) 0%,
        rgba(0, 212, 255, 0.08) 30%,
        rgba(0, 212, 255, 0.02) 60%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    will-change: transform;
}

/* 确保内容层在背景层之上 */
.navbar, .hero, section, .footer {
    position: relative;
    z-index: 2;
}

/* 按钮 / 卡片悬停时的扫光效果 */
.btn, .portfolio-card, .cert-card, .stat-item, .timeline-content, .contact-form, .skill-category {
    position: relative;
    overflow: hidden;
}

.btn::before,
.portfolio-card::before,
.cert-card::before,
.stat-item::before,
.timeline-content::before,
.contact-form::before,
.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 212, 255, 0.08),
        rgba(0, 212, 255, 0.18),
        rgba(0, 212, 255, 0.08),
        transparent);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 1;
}

.btn:hover::before,
.portfolio-card:hover::before,
.cert-card:hover::before,
.stat-item:hover::before,
.timeline-content:hover::before,
.contact-form:hover::before,
.skill-category:hover::before {
    left: 150%;
}

/* Hero 标题故障艺术效果（细微抖动） */
.hero-content h1 {
    position: relative;
    animation: hero-title-pulse 4s ease-in-out infinite;
}

@keyframes hero-title-pulse {
    0%, 100% { text-shadow: 0 0 24px rgba(0, 212, 255, 0.35); }
    50% { text-shadow: 0 0 40px rgba(0, 212, 255, 0.55), 0 0 80px rgba(0, 212, 255, 0.25); }
}

/* 强调文字呼吸发光 */
.highlight {
    animation: highlight-glow 3s ease-in-out infinite;
}

@keyframes highlight-glow {
    0%, 100% {
        color: #00d4ff;
        text-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
    }
    50% {
        color: #66e5ff;
        text-shadow: 0 0 36px rgba(0, 212, 255, 0.65);
    }
}

/* 章节标题 hover 故障效果 */
.section-title:hover {
    animation: glitch 0.4s ease;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0, 0);
        text-shadow: 0 0 12px rgba(0, 212, 255, 0.5);
    }
    20% { transform: translate(-2px, 1px); text-shadow: 2px 0 #ff00aa, -2px 0 #00d4ff; }
    40% { transform: translate(2px, -1px); text-shadow: -2px 0 #ff00aa, 2px 0 #00d4ff; }
    60% { transform: translate(-1px, 2px); text-shadow: 2px 0 #00d4ff; }
    80% { transform: translate(1px, -2px); text-shadow: -2px 0 #ff00aa; }
}

/* 主按钮脉冲呼吸 */
.btn-primary {
    animation: btn-pulse 2.5s ease-in-out infinite;
}

@keyframes btn-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 35px rgba(0, 212, 255, 0.6), 0 0 60px rgba(0, 212, 255, 0.25);
    }
}

/* 时间线节点发光脉冲 */
.timeline-date {
    animation: date-glow 2s ease-in-out infinite;
}

@keyframes date-glow {
    0%, 100% { box-shadow: 0 0 16px rgba(0, 212, 255, 0.5); }
    50% { box-shadow: 0 0 28px rgba(0, 212, 255, 0.85); }
}

/* 头像光环旋转 */
.profile-picture {
    animation: avatar-ring 6s linear infinite;
}

@keyframes avatar-ring {
    0% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.25), 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(0, 212, 255, 0.4); }
    50% { box-shadow: 0 0 80px rgba(0, 212, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(0, 212, 255, 0.1); }
    100% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.25), 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(0, 212, 255, 0); }
}

/* 进度条流光 */
.skill-progress {
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: skill-stream 2.5s linear infinite;
}

@keyframes skill-stream {
    0% { left: -60%; }
    100% { left: 100%; }
}

/* 标签闪烁 */
.tag {
    animation: tag-blink 4s ease-in-out infinite;
}

@keyframes tag-blink {
    0%, 100% { box-shadow: 0 0 0 rgba(0, 212, 255, 0); }
    50% { box-shadow: 0 0 10px rgba(0, 212, 255, 0.4); }
}

/* 移动端禁用部分重特效以省性能 */
@media (max-width: 768px) {
    .global-scanline { display: none; }
    .cursor-glow { display: none; }
    #starfield { opacity: 0.5; }
}

