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

:root {
    --lavender-light: #e6d5f3;
    --lavender-medium: #d4c4e8;
    --lavender-dark: #c8a2c8;
    --lavender-accent: #b19cd9;
    --lavender-deep: #a78bfa;
    --lavender-bg: #f5f0ff;
    --text-purple: #9d7ce8;
    --text-dark: #8b7fa8;
    --white: #ffffff;
    --shadow-lavender: rgba(200, 162, 200, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #f5f0ff 0%, #ede5f7 50%, #e6d5f3 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

#sakuraCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.main-container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.main-title {
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #9d7ce8 0%, #b19cd9 50%, #c8a2c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px var(--shadow-lavender);
    animation: titleBounce 2s ease-in-out infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-purple);
    font-weight: 300;
    opacity: 0.9;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes titleBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.cute-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    width: 100%;
}

.cute-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px var(--shadow-lavender);
    border: 2px solid rgba(200, 162, 200, 0.3);
    position: relative;
    overflow: hidden;
    animation: cardFloat 3s ease-in-out infinite;
}

.cute-card:nth-child(2) {
    animation-delay: 0.3s;
}

.cute-card:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.cute-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(200, 162, 200, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
}

.cute-card:hover::before {
    opacity: 1;
}

.cute-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 20px 50px var(--shadow-lavender);
    border-color: var(--lavender-accent);
}

.card-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: inline-block;
    animation: iconSpin 4s ease-in-out infinite;
    filter: drop-shadow(0 0 20px var(--shadow-lavender));
}

@keyframes iconSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(5deg) scale(1.1);
    }
    75% {
        transform: rotate(-5deg) scale(1.1);
    }
}

.card-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-purple);
    margin-bottom: 15px;
    background: linear-gradient(135deg, #9d7ce8 0%, #b19cd9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-text {
    font-size: 1.1rem;
    color: var(--text-dark);
    opacity: 0.8;
    line-height: 1.6;
}

.error-page {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-content {
    text-align: center;
    max-width: 600px;
    animation: fadeInDown 1s ease-out;
}

.error-icon {
    font-size: 6rem;
    margin-bottom: 20px;
    animation: iconSpin 3s ease-in-out infinite;
}

.error-number {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #9d7ce8 0%, #b19cd9 50%, #c8a2c8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px var(--shadow-lavender));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-purple);
    margin-bottom: 20px;
}

.error-description {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 0.8;
    margin-bottom: 40px;
}

.error-actions {
    margin-top: 40px;
}

.cute-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #9d7ce8 0%, #b19cd9 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.4s;
    box-shadow: 0 10px 30px var(--shadow-lavender);
    position: relative;
    overflow: hidden;
}

.cute-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.cute-btn:hover::before {
    left: 100%;
}

.cute-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px var(--shadow-lavender);
}

.btn-icon {
    font-size: 1.3rem;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 100;
    text-align: center;
    background: rgba(245, 240, 255, 0.6);
    backdrop-filter: blur(10px);
}

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

.icp {
    color: var(--text-dark);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: all 0.3s;
}

.icp a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.icp a:hover {
    color: var(--text-purple);
    opacity: 1;
    text-shadow: 0 0 10px var(--shadow-lavender);
}

.icp:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .cute-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .cute-card {
        padding: 35px 25px;
    }
    
    .card-icon {
        font-size: 60px;
    }
    
    .card-title {
        font-size: 1.5rem;
    }
    
    .error-number {
        font-size: 5rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2.5rem;
    }
    
    .error-number {
        font-size: 4rem;
    }
    
    .card-title {
        font-size: 1.3rem;
    }
}
