/* styles.css */
/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #121212;
    color: #fdf9f3;
    font-family: 'IBM Plex Mono', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
} */

/* .header {
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
} */

/* .container {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
} */

#ascii-container {
    position: absolute;
    width: 100%;
    height: 90vh;
    top: 0;
    left: 0;
    z-index: 0;
    
}

#ascii-container canvas {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    image-rendering: optimizeSpeed;
    image-rendering: -moz-crisp-edges;
    image-rendering: -o-crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}

#ascii-container pre {
    margin: 0;
    user-select: none;
    padding: 0;
    line-height: 1em;
    text-align: left;
    position: absolute;
    left: 0;
    top: 0;
    background-image: radial-gradient(circle, #ff6188 0%, #fc9867 50%, #ffd866 100%);
    background-attachment: fixed;
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    z-index: 0;
    mix-blend-mode: difference;
}

/* .controls {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    z-index: 10;
}

button {
    background: #ff6188;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'IBM Plex Mono', monospace;
    transition: all 0.3s ease;
}

button:hover {
    background: #fc9867;
    transform: translateY(-2px);
}

.info-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem;
    border-radius: 8px;
    max-width: 300px;
    font-size: 0.9rem;
    line-height: 1.5;
    z-index: 10;
}

.info-panel h3 {
    margin-bottom: 0.5rem;
    color: #ffd866;
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 100;
    transition: opacity 0.5s;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: #ff6188;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
} */

/* @keyframes spin {
    to { transform: rotate(360deg); }
} */

/* --- 新增页面过渡动画 --- */
body {
    /* 默认让页面透明，并设置过渡效果 */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.fade-in {
    /* 用于触发渐显的 class */
    opacity: 1;
}

body.fade-out {
    /* 用于触发淡出的 class */
    opacity: 0;
}