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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(145deg, #0a0a0a 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #f0f0f0;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0 3rem;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: transparent;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    z-index: 999;
}

.nav-left {
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-name-link {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.nav-name-link:hover {
    opacity: 0.8;
}
.nav-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    border: none;
}

.electric-border {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    overflow: hidden;
}

.electric-border-gradient {
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        transparent 40%,
        #7df9ff 45%,
        #ffffff 50%,
        #7df9ff 55%,
        transparent 60%,
        transparent 100%
    );
    animation: electric-rotate 3s linear infinite;
    filter: url(#electric-filter);
    z-index: 1;
}

.electric-border::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: transparent;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 0 8px 2px rgba(125, 249, 255, 0.4);
}

.electric-border:hover .electric-border-gradient {
    animation-duration: 1s;
}

.electric-border:hover::after {
    box-shadow: 0 0 16px 4px rgba(125, 249, 255, 0.7);
}

@keyframes electric-rotate {
    to { transform: rotate(360deg); }
}

.nav-center {
    display: flex;
    gap: 2.8rem;
    font-weight: 450;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.nav-center a {
    color: #d0d0d0;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #b8a9f0;
    transition: width 0.25s ease;
}

.nav-center a:hover {
    color: #ffffff;
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.lang-group {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    padding: 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-btn {
    background: transparent;
    border: none;
    color: #a0a0b8;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: "Inter", sans-serif;
    letter-spacing: 0.3px;
}

.lang-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.lang-btn:hover:not(.active) {
    color: #e0e0f0;
    background: rgba(255, 255, 255, 0.05);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 2.5rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    margin: 1.2rem 0 2.8rem 0;
    max-width: 780px;
}

.hero-text .big {
    font-size: 2.2rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: #f0edff;
    margin-bottom: 0.6rem;
}

.hero-text .regular {
    font-size: 1.1rem;
    font-weight: 350;
    color: #b8b4cc;
    letter-spacing: 0.01em;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.hero-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: #8a86a0;
    letter-spacing: 0.3px;
}

.experience-section {
    margin: 4.5rem 0;
    max-width: 820px;
    scroll-margin-top: 90px;
}

.experience-section .section-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #f0edff;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    padding-bottom: 1.2rem;
}

.timeline-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.timeline-year {
    width: 150px;
    flex-shrink: 0;
    font-weight: 450;
    color: #b0acc4;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
    padding-top: 0.1rem;
}

.timeline-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.timeline-content .company {
    font-weight: 500;
    font-size: 1.05rem;
    color: #f0edff;
    letter-spacing: -0.1px;
    text-align: left;
}

.timeline-content .position {
    font-weight: 350;
    color: #b8b4cc;
    font-size: 0.9rem;
    margin-top: 0.15rem;
    letter-spacing: 0.2px;
    text-align: left;
}

.project-section {
    margin: 4.5rem 0;
    scroll-margin-top: 90px;
}

.project-section .section-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #f0edff;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 0rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: transform 0.25s ease, box-shadow 0.35s ease, border-color 0.3s ease;
    box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(190, 170, 240, 0.3);
    box-shadow: 0 22px 44px -14px rgba(100, 80, 200, 0.25);
}

.card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #14141f;
    position: relative;
    transition: box-shadow 0.4s ease;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.1);
}

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

.project-card:hover .card-image {
    box-shadow: inset 0 0 0 1px rgba(190, 170, 240, 0.4), 0 0 24px rgba(170, 140, 255, 0.15);
}

.card-footer {
    padding: 1.2rem 1.4rem 1.4rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(2px);
}

.card-footer h3 {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.2px;
    color: #f0edff;
    margin-bottom: 0.2rem;
}

.card-footer p {
    font-size: 0.8rem;
    font-weight: 350;
    color: #a8a4b8;
    letter-spacing: 0.2px;
}

#contact {
    padding-top: 3.5rem;
    text-align: left;
    scroll-margin-top: 90px;
}

.footer-contact {
    margin: 4.5rem 0;
}

.footer-contact .section-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #f0edff;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}

.footer-contact .contact-desc {
    font-size: 1rem;
    font-weight: 350;
    color: #b8b4cc;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    max-width: 680px;
}

.footer-contact .contact-desc a {
    font-weight: 600;
    color: #6fa3ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(111, 163, 255, 0.25);
    transition: color 0.2s, border-color 0.2s;
}

.footer-contact .contact-desc a:hover {
    color: #8db8ff;
    border-bottom-color: #6fa3ff;
}

.footer-copyright {
    margin-top: 3rem;
    font-size: 0.7rem;
    color: #3a3a4e;
    letter-spacing: 0.5px;
    font-weight: 300;
}

.wechat-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.wechat-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    background: #1a1a2e;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    z-index: 1001;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.wechat-qr {
    width: 200px;
    height: 200px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.wechat-label {
    font-size: 0.95rem;
    color: #f0edff;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #a0a0b8;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #ffffff;
}

@media (max-width: 1024px) {
    .project-grid {
        gap: 1.5rem;
    }
    .navbar {
        padding: 0 1.8rem;
    }
    .nav-center {
        gap: 1.8rem;
    }
    .hero-text .big {
        font-size: 1.9rem;
    }
    .nav-left {
        font-size: 1.5rem;
    }
}

@media (max-width: 820px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-center {
        gap: 1.2rem;
        font-size: 0.9rem;
    }
    .nav-left {
        font-size: 1.4rem;
    }
    .hero-text .big {
        font-size: 1.7rem;
    }
    .hero-text .regular {
        font-size: 1rem;
    }
    .timeline-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    .timeline-year {
        width: auto;
        font-size: 0.85rem;
        color: #8a86a0;
    }
    .experience-section {
        max-width: 100%;
    }
    .footer-contact .contact-desc {
        font-size: 0.95rem;
    }
}

@media (max-width: 550px) {
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }
    .navbar {
        padding: 0 1.2rem;
        height: 64px;
    }
    .nav-center {
        gap: 0.9rem;
        font-size: 0.8rem;
    }
    .nav-left {
        font-size: 1.2rem;
    }
    .lang-btn {
        font-size: 0.7rem;
        padding: 0.2rem 0.7rem;
    }
    .container {
        padding: 1rem 1.2rem 3rem;
    }
    .hero-text .big {
        font-size: 1.4rem;
    }
    .hero-text .regular {
        font-size: 0.95rem;
    }
    .experience-section .section-title {
        font-size: 1rem;
    }
    .timeline-content .company {
        font-size: 1rem;
    }
    .project-section .section-title {
        font-size: 1rem;
    }
    .footer-contact .section-title {
        font-size: 1rem;
    }
    .footer-contact .contact-desc {
        font-size: 0.9rem;
    }
}

.skills-section {
    margin: 4.5rem 0;
}
.skills-section .section-header {
    margin-bottom: 2rem;
}
.skills-section .section-title {
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.1px;
    color: #f0edff;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.6rem;
}
.skills-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    margin-bottom: 2rem;
    padding: 12px 0;
}
.skills-marquee:last-child {
    margin-bottom: 0;
}
.marquee-track {
    display: flex;
}
.marquee-content {
    display: flex;
    gap: 1.5rem;
    flex-shrink: 0;
    animation: scroll 30s linear infinite;
}
.marquee-content[aria-hidden="true"] {
    margin-left: 1.5rem;
}
.skill-tag {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 0.75rem 1.25rem;
    border-radius: 28px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #a1a1aa;
    white-space: nowrap;
    transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.skill-tag:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(190, 170, 240, 0.3);
    color: #ffffff;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}