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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #000;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
}

/* 加载蒙版 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 42%, rgba(0, 255, 204, 0.10), transparent 40%), #000;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.loader-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

.loader-core {
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s ease;
}

.loader-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 200, 0.4), transparent 65%);
    filter: blur(6px);
    animation: glowPulse 2.2s ease-in-out infinite;
}

.loader-heart {
    position: relative;
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 14px rgba(0, 230, 200, 0.75));
    animation: heartBeat 1.6s ease-in-out infinite;
}

.loader-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: orbitSpin 2.8s linear infinite;
}

.loader-petal {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 -9px;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M50 0C65 25 95 30 95 50C95 70 70 85 50 100C30 85 5 70 5 50C5 30 35 25 50 0Z' fill='%23ccfff2'/></svg>") no-repeat center / contain;
    animation: petalPulse 2.8s ease-in-out infinite;
}

.loader-petal-1 { transform: rotate(0deg) translateY(-62px); }
.loader-petal-2 { transform: rotate(90deg) translateY(-62px); animation-delay: 0.35s; }
.loader-petal-3 { transform: rotate(180deg) translateY(-62px); animation-delay: 0.7s; }
.loader-petal-4 { transform: rotate(270deg) translateY(-62px); animation-delay: 1.05s; }

.loader-text {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 4px;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 0 18px rgba(0, 255, 204, 0.8);
}

.loader-dots {
    display: inline-flex;
    gap: 5px;
    margin-left: 6px;
}

.loader-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.9);
    animation: dotBounce 1.2s ease-in-out infinite;
}

.loader-dots i:nth-child(2) { animation-delay: 0.15s; }
.loader-dots i:nth-child(3) { animation-delay: 0.3s; }

.loader-bar {
    width: 180px;
    height: 3px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.loader-bar span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, #00e6c8, #7ffff0);
    animation: barSlide 1.4s ease-in-out infinite;
}

.loading-overlay.exit {
    opacity: 0;
    visibility: hidden;
}

.loading-overlay.exit .loader-core {
    transform: scale(1.25);
}

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

@keyframes petalPulse {
    0%, 100% { opacity: 0.35; }
    50% { opacity: 1; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.18); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    56% { transform: scale(1); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.75; }
    50% { transform: scale(1.25); opacity: 1; }
}

@keyframes dotBounce {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    40% { transform: translateY(-7px); opacity: 1; }
}

@keyframes barSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(322%); }
}

.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cherry-blossom {
    position: fixed;
    top: -10px;
    z-index: 999;
    animation: fall linear forwards;
    pointer-events: none;
}

@keyframes fall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

.navbar {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 44px;
}

.navbar-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-item {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 0.8;
}

.navbar-item:hover {
    opacity: 1;
    color: #00ffcc;
}

.navbar-logo {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-decoration: none;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 120px 20px 80px;
    position: relative;
}

.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}

.hero-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 255, 204, 0.3);
}

.hero-subtitle {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-link {
    color: #00ffcc;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    padding: 10px 20px;
    border-radius: 25px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.hero-link:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.5);
}

.section {
    padding: 100px 20px;
    max-width: 980px;
    margin: 0 auto;
}

.section-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: -0.5px;
    color: #00ffcc;
    text-shadow: 0 2px 10px rgba(0, 255, 204, 0.3);
}

.glass-card {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 204, 0.2);
    border-color: rgba(0, 255, 204, 0.3);
}

.skills {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

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

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-name {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
}

.skill-percentage {
    font-size: 14px;
    color: #00ffcc;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #00ffcc, #0099cc);
    transition: width 1s ease;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

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

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-date {
    width: 150px;
    font-size: 14px;
    font-weight: 500;
    color: #00ffcc;
    flex-shrink: 0;
}

.timeline-content {
    flex: 1;
    padding-left: 40px;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

.timeline-content::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 14px;
    bottom: -30px;
    width: 2px;
    background: rgba(0, 255, 204, 0.3);
}

.timeline-item:last-child .timeline-content::after {
    display: none;
}

.timeline-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #ffffff;
}

.timeline-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.contact {
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.1);
    color: #00ffcc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.contact-text {
    font-size: 16px;
    color: #ffffff;
}

.contact-text a {
    color: #00ffcc;
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.footer {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
}

.footer-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-link {
    font-size: 12px;
    color: #00ffcc;
    text-decoration: none;
}

.footer-link:hover {
    text-decoration: underline;
}

.music-player-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.music-player {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.2);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(0);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1001;
    max-width: 90vw;
    border: 1px solid rgba(0, 255, 204, 0.3);
}

.music-player-container.collapsed .music-player {
    transform: translateX(calc(100% + 80px));
}

.music-player iframe {
    border-radius: 8px;
    max-width: 100%;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 8px;
    z-index: 1002;
}

.control-button {
    background: #0071e3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.5);
}

.control-button:hover {
    background: #0055b3;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 113, 227, 0.7);
}

.next-button {
    background: #34c759;
    box-shadow: 0 2px 10px rgba(52, 199, 89, 0.5);
}

.next-button:hover {
    background: #58d68d;
    box-shadow: 0 4px 15px rgba(52, 199, 89, 0.7);
}

.cute-image {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 1000;
}

.cute-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3);
}

.click-effect {
    position: fixed;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.6);
    transform: scale(0);
    animation: clickEffect 0.6s ease-out;
    pointer-events: none;
    z-index: 9999;
}

@keyframes clickEffect {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        gap: 20px;
    }

    .navbar-item {
        font-size: 12px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .section {
        padding: 80px 20px;
    }

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

    .glass-card {
        padding: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .timeline-content {
        padding-left: 20px;
    }

    .music-player-container {
        transform: scale(0.9);
        transform-origin: bottom right;
    }

    .cute-image img {
        width: 60px;
        height: 60px;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-title {
    position: relative;
    padding-bottom: 18px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.6);
}

.glass-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.5), transparent);
    pointer-events: none;
}

.skill-progress {
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    animation: skillShine 2.4s ease-in-out infinite;
}

.hero-avatar {
    animation: avatarGlow 3s ease-in-out infinite;
}

.control-button:hover {
    transform: scale(1.12);
    background: #0091ff;
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.6);
}

.timeline-content::before {
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.7);
}

@keyframes skillShine {
    0% { left: -100%; }
    60%, 100% { left: 100%; }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(0, 255, 204, 0.3); }
    50% { box-shadow: 0 6px 30px rgba(0, 255, 204, 0.6); }
}

.history-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
}

.history-track-wrap {
    flex: 1;
    overflow: hidden;
}

.history-card-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    cursor: grab;
    user-select: none;
}

.history-card-track.no-transition {
    transition: none;
}

.history-card-track:active {
    cursor: grabbing;
}

.history-card {
    min-width: 33.3333%;
    box-sizing: border-box;
    padding: 24px 26px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 255, 204, 0.15);
    border-radius: 14px;
    opacity: 0.3;
    transform: scale(0.86);
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}

.history-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: rgba(0, 255, 204, 0.45);
    box-shadow: 0 6px 24px rgba(0, 255, 204, 0.12);
    cursor: default;
}

.history-card:not(.active) {
    cursor: pointer;
}

.history-card:not(.active):hover {
    opacity: 0.55;
}

.history-card-date {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #00ffcc;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.history-card-date::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffcc;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.8);
}

.history-card .timeline-title {
    color: #ffffff;
    font-size: 18px;
    margin: 0 0 10px;
}

.history-card .timeline-description {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    margin: 0;
}

.history-nav {
    position: relative;
    z-index: 2;
    align-self: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 255, 204, 0.08);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-nav:hover:not(:disabled) {
    background: rgba(0, 255, 204, 0.18);
    box-shadow: 0 0 14px rgba(0, 255, 204, 0.5);
    transform: scale(1.08);
}

.history-nav:disabled {
    opacity: 0.25;
    cursor: default;
}

.history-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.history-counter {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    letter-spacing: 3px;
}

.history-all-toggle {
    padding: 8px 24px;
    border-radius: 20px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    color: #00ffcc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.history-all-toggle:hover {
    background: rgba(0, 255, 204, 0.2);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.4);
}

.history-list .timeline-content::before {
    transform: scaleY(0);
    transform-origin: top;
}

.history-list.in-view .timeline-content::before {
    animation: growLine 0.55s ease forwards;
    animation-delay: calc(var(--i, 0) * 0.4s);
}

@keyframes growLine {
    to { transform: scaleY(1); }
}

@media (max-width: 768px) {
    .history-carousel {
        flex-direction: column;
        gap: 16px;
    }
    .history-track-wrap {
        width: 100%;
    }
    .history-card {
        min-width: 100%;
        padding: 16px 18px;
    }
    .history-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .history-nav:hover:not(:disabled) {
        transform: translateY(-50%) scale(1.08);
    }
    #historyPrev { left: 0; }
    #historyNext { right: 0; }
    .history-card-date { font-size: 14px; }
    .history-card .timeline-title { font-size: 16px; }
    .history-card .timeline-description { font-size: 14px; }
    .history-footer { margin-top: 12px; gap: 12px; }
}

.loading-overlay {
    animation: overlayFailsafe 0.8s ease 6s forwards;
}

@keyframes overlayFailsafe {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
