:root {
    --baby-blue-light: #E0F0FF;
    --baby-blue-main: #A6D4FA;
    --baby-blue-dark: #7CAEDB;
    --bg-warm-white: #FCFDFD; 
    --text-main: #4A5568;
    --text-sub: #829AB1;
    --jelly-ease: cubic-bezier(0.34, 1.56, 0.64, 1); 
    --smooth-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --radius-card: 24px;
    --radius-pill: 999px;
    --shadow-soft: 0 12px 32px rgba(166, 212, 250, 0.15); 
    --shadow-glow: 0 20px 48px rgba(166, 212, 250, 0.4);
    --shadow-press: 0 4px 12px rgba(166, 212, 250, 0.1);
}

* { box-sizing: border-box; }

body {
    margin: 0; padding: 5vh 2vw;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center;
    font-family: 'Nunito', 'Quicksand', "PingFang SC", sans-serif;
    background-color: var(--bg-warm-white);
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999; 
}

.bg-blobs { 
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; 
    z-index: -2; 
    filter: blur(120px); 
    opacity: 0.35; 
    pointer-events: none;
    background: linear-gradient(180deg, #F0F7FF 0%, #FFFFFF 50%, #F0F9F1 100%); 
    background-size: 100% 200%;
    animation: fluidBg 10s linear infinite;
    overflow: visible; 
}

@keyframes fluidBg {
    0% { background-position: 0% 0%; }
    100% { background-position: 0% 200%; }
}

.blob { 
    position: absolute; border-radius: 50%; 
    animation: flowDownBlob linear infinite; 
    opacity: 0.6; 
}

.blob-1 { width: 130vw; height: 130vh; left: -15vw; background: #CBE6FF; animation-duration: 12s; animation-delay: 0s; }
.blob-2 { width: 140vw; height: 140vh; right: -20vw; background: #E4F5E6; animation-duration: 15s; animation-delay: -5s; }
.blob-3 { width: 150vw; height: 150vh; left: -30vw; background: #EBF4FF; animation-duration: 18s; animation-delay: -10s; }
.blob-4 { width: 120vw; height: 120vh; right: -10vw; background: #D6F1FF; animation-duration: 14s; animation-delay: -2s; }
.blob-5 { width: 110vw; height: 110vh; left: 10vw; background: #F8D1DF; opacity: 0.4; animation-duration: 16s; animation-delay: -7s; }
.blob-6 { width: 100vw; height: 100vh; right: 15vw; background: #C8E6C9; opacity: 0.4; animation-duration: 13s; animation-delay: -1s; }

@keyframes flowDownBlob { 
    0% { transform: translateY(-80vh) scale(0.9); opacity: 0; } 
    20% { opacity: 0.8; }
    80% { opacity: 0.8; }
    100% { transform: translateY(130vh) scale(1.1); opacity: 0; } 
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.page-wrapper {
    width: 96%; max-width: 1000px;
    display: flex; flex-direction: column; gap: 40px;
    z-index: 1;
}

@keyframes glassFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-flat {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(166, 212, 250, 0.1) 50%, rgba(224, 240, 255, 0.2) 100%);
    background-size: 200% 200%;
    background-color: transparent;
    animation: glassFlow 8s ease infinite;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4); 
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
    transition: all 0.5s var(--jelly-ease);
    translate: 0px 0px;
    scale: 1;
}

.card-flat:hover {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(166, 212, 250, 0.2) 50%, rgba(224, 240, 255, 0.35) 100%);
    border-color: rgba(255, 255, 255, 0.7);
    translate: 0px -8px;
    scale: 1.02;
    box-shadow: var(--shadow-glow);
    z-index: 10;
}

.card-flat:active {
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(166, 212, 250, 0.05) 50%, rgba(224, 240, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    translate: 0px 4px;
    scale: 0.96;
    box-shadow: var(--shadow-press);
    transition: all 0.15s ease;
}

.main-card {
    padding: 60px 50px;
    animation: fadeInUp 1s var(--smooth-ease) both;
    display: flex; flex-direction: column; align-items: center; text-align: center;
}

.header-group { display: flex; flex-direction: column; align-items: center; gap: 20px; margin-bottom: 30px; width: 100%; }

.logo-box {
    width: 120px; height: 120px;
    border-radius: 35px; 
    background-image: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(166, 212, 250, 0.2));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex; justify-content: center; align-items: center;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: all 0.5s var(--jelly-ease);
    scale: 1; rotate: 0deg;
}

.logo-box:hover { scale: 1.15; rotate: -8deg; box-shadow: var(--shadow-glow); }
.logo-box:active { scale: 0.9; rotate: 0deg; transition: all 0.15s ease; }

.css-cloud-logo { position: relative; width: 55px; height: 20px; background: #ffffff; border-radius: 50px; margin-top: 10px; }
.css-cloud-logo::before, .css-cloud-logo::after { content: ''; position: absolute; background: #ffffff; border-radius: 50%; }
.css-cloud-logo::before { width: 35px; height: 35px; top: -18px; left: 8px; }
.css-cloud-logo::after { width: 22px; height: 22px; top: -10px; right: 6px; }

.header-group h1 {
    margin: 0; font-size: 3.5rem; font-family: 'Quicksand', sans-serif; font-weight: 700;
    color: var(--text-main); letter-spacing: -2px;
}

.badge-mood {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px;
    background-image: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(224, 240, 255, 0.3));
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--baby-blue-dark);
    border-radius: var(--radius-pill); font-size: 1rem; font-weight: 700;
}

.intro-text {
    max-width: 800px;
    color: var(--text-main);
    font-size: 1.15rem;
    line-height: 1.8;
}
.intro-text p { margin: 10px 0; }

.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    animation: fadeInUp 1s var(--smooth-ease) 0.1s both;
}

.stat-box {
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.stat-box:hover .stat-number { color: var(--baby-blue-dark); transform: scale(1.1); }

.stat-number {
    font-size: 2.8rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--text-main);
    transition: all 0.4s var(--jelly-ease);
}
.stat-label {
    margin-top: 5px;
    font-size: 1rem;
    color: var(--text-sub);
    font-weight: 700;
}

.section-title-wrapper {
    width: 100%;
    text-align: center;
    margin-bottom: -10px;
    animation: fadeInUp 1s var(--smooth-ease) 0.2s both;
}
.section-title {
    font-family: 'Quicksand', sans-serif;
    font-size: 1.8rem;
    color: var(--text-main);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; position: absolute; bottom: -8px; left: 50%;
    transform: translateX(-50%); width: 40px; height: 4px;
    background: var(--baby-blue-main); border-radius: 10px;
}

.project-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; width: 100%;
}

.project-item {
    display: flex; flex-direction: column; text-decoration: none; padding: 35px 30px;
    animation: fadeInUp 1s var(--smooth-ease) both; text-align: left; cursor: default;
}
.project-item:nth-child(1) { animation-delay: 0.3s; }
.project-item:nth-child(2) { animation-delay: 0.4s; }
.project-item:nth-child(3) { animation-delay: 0.5s; }

.project-item:hover { background: rgba(255, 255, 255, 0.2); }
.project-title { display: block; font-size: 1.3rem; font-weight: 700; color: var(--text-main); margin-bottom: 10px; transition: color 0.3s ease;}
.project-item:hover .project-title { color: var(--baby-blue-dark); }
.project-desc { display: block; font-size: 1rem; color: var(--text-sub); line-height: 1.6; }

.timeline {
    padding: 40px 50px;
    display: flex; flex-direction: column; gap: 30px;
    position: relative;
    animation: fadeInUp 1s var(--smooth-ease) 0.6s both;
}

.timeline::before {
    content: ''; position: absolute; top: 40px; bottom: 40px; left: 50px;
    width: 2px; background: rgba(166, 212, 250, 0.4);
}

.timeline-item {
    position: relative; padding-left: 40px;
}

.timeline-item::before {
    content: ''; position: absolute; left: -6px; top: 5px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--bg-card); border: 3px solid var(--baby-blue-main);
    box-shadow: 0 0 0 4px rgba(166, 212, 250, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(166, 212, 250, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(166, 212, 250, 0); }
    100% { box-shadow: 0 0 0 0 rgba(166, 212, 250, 0); }
}

.timeline-date {
    font-family: 'Quicksand', sans-serif; font-weight: 700; font-size: 0.9rem;
    color: var(--baby-blue-dark); margin-bottom: 5px; letter-spacing: 1px;
}
.timeline-content { display: flex; flex-direction: column; }
.timeline-title { font-size: 1.2rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.timeline-desc { font-size: 1rem; color: var(--text-sub); line-height: 1.6; }

.carousel-container { position: relative; width: 100%; display: flex; align-items: center; gap: 20px; animation: fadeInUp 1s var(--smooth-ease) 0.8s both; }
.carousel-viewport { flex: 1; overflow: hidden; height: 180px; cursor: pointer; }
.carousel-viewport:hover { background: rgba(255, 255, 255, 0.2); }
.carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.8s var(--jelly-ease); }
.carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 0 50px; text-decoration: none; text-align: left; }

.carousel-btn {
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 1.2rem; color: var(--baby-blue-dark);
    user-select: none; flex-shrink: 0; border-radius: var(--radius-pill); 
    transition: all 0.5s var(--jelly-ease); scale: 1; rotate: 0deg;
}

.carousel-btn:hover { background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(224, 240, 255, 0.4) 100%); scale: 1.15; rotate: 5deg; }
.carousel-btn:active { scale: 0.9; transition: all 0.15s ease; }

.footer-area { padding: 30px; text-align: center; color: var(--text-sub); font-size: 1rem; margin-top: 10px; animation: fadeInUp 1s var(--smooth-ease) 0.9s both; cursor: pointer; }

.bg-cute-cloud {
    position: fixed; width: 90px; height: 30px; background: rgba(255,255,255,0.6); border-radius: 50px;
    box-shadow: var(--shadow-soft); z-index: -1; pointer-events: none;
}
.bg-cute-cloud::before, .bg-cute-cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.bg-cute-cloud::before { width: 45px; height: 45px; top: -20px; left: 15px; }
.bg-cute-cloud::after { width: 30px; height: 30px; top: -10px; right: 10px; }

.cloud-1 { animation: driftRightDown 20s linear infinite; }
.cloud-2 { animation: driftLeftDown 15s linear infinite; }
.cloud-3 { width: 70px; height: 25px; animation: driftRightDown 18s linear -3s infinite; opacity: 0.6; }
.cloud-3::before { width: 35px; height: 35px; top: -15px; left: 10px; }
.cloud-3::after { width: 25px; height: 25px; top: -8px; right: 8px; }
.cloud-4 { width: 80px; height: 28px; animation: driftLeftDown 16s linear -6s infinite; opacity: 0.7; }
.cloud-4::before { width: 40px; height: 40px; top: -18px; left: 12px; }
.cloud-4::after { width: 28px; height: 28px; top: -9px; right: 9px; }

@keyframes driftRightDown { 
    0% { transform: translate(-10vw, -10vh) scale(1); opacity: 0; } 
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(110vw, 40vh) scale(1.1); opacity: 0; } 
}
@keyframes driftLeftDown { 
    0% { transform: translate(110vw, -5vh) scale(0.7); opacity: 0; } 
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-10vw, 35vh) scale(0.8); opacity: 0; } 
}

.particles-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: -1; overflow: hidden; }
.particle { position: absolute; top: -50px; background: rgba(255,255,255,0.7); border-radius: 50%; opacity: 0; }
.particle.star {
    background: var(--baby-blue-main);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

@keyframes fall {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateY(120vh) translateX(30px) rotate(360deg); opacity: 0; }
}
@keyframes twinkle { 
    0% { transform: scale(0.8); opacity: 0.2; } 
    100% { transform: scale(1.2); opacity: 0.8; } 
}

@media (max-width: 1024px) { 
    .project-grid { grid-template-columns: repeat(2, 1fr); } 
    .stats-container { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    body { padding: 3vh 3vw; }
    .page-wrapper { gap: 25px; }
    .main-card { padding: 40px 20px; }
    .header-group h1 { font-size: 2.5rem; }
    .stats-container { grid-template-columns: 1fr; gap: 15px; }
    .project-grid { grid-template-columns: 1fr; gap: 20px; }
    .project-item { padding: 30px 25px; }
    .timeline { padding: 30px 20px; }
    .timeline::before { left: 20px; }
    .timeline-item { padding-left: 25px; }
    .timeline-item::before { left: -7px; }
    .carousel-btn { display: none; }
    .carousel-viewport { height: 200px; }
    .carousel-slide { padding: 0 25px; }
}
/* ========================================================= */
/* 错误页面专属样式与返回按钮                                   */
/* ========================================================= */
.error-card {
    padding: 60px 40px;
    max-width: 600px;
    margin: 5vh auto;
}

.error-code {
    font-size: 6rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    color: var(--baby-blue-dark);
    margin: 20px 0 0 0;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(166, 212, 250, 0.4);
}

.error-message {
    font-size: 1.5rem;
    color: var(--text-main);
    margin: 15px 0;
    font-weight: 700;
}

.error-desc {
    font-size: 1.1rem;
    color: var(--text-sub);
    margin-bottom: 40px;
    line-height: 1.6;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--baby-blue-dark);
    text-decoration: none;
    cursor: pointer;
}
.btn-home:hover { color: var(--baby-blue-dark); }