* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #fff;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

h1 {
    font-size: 2.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

.typewriter {
    font-size: 2rem;
    line-height: 1.4;
    margin: 1rem auto;
    min-height: 3em;
}

/* 光标样式 */
.cursor {
    display: inline-block;
    width: 2px;
    height: 2.2rem;
    background: #fff;
    vertical-align: middle;
    margin-left: 4px;
    animation: blink 1s infinite;
}

/* 光标动画 */
@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.controls {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.controls .btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.controls .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.speed-display {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 1rem;
}