/* styles.css */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000000; /* 极致纯黑 */
    color: #eeeeee;
    font-family: 'Courier New', Courier, "PingFang SC", "Microsoft YaHei", monospace;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* 模拟老式CRT显示器的扫描线 (极度微弱，增加质感) */
body::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.container {
    width: 85%;
    max-width: 900px;
    z-index: 3;
    position: relative;
}

/* 文字样式 */
#typing-text {
    font-size: 1.6rem;
    line-height: 1.6;
    font-weight: bold;
    white-space: pre-wrap; /* 完美支持 \n\n 空行 */
    word-break: break-word;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3); /* 轻微的屏幕发光感 */
}

/* 极客风实心光标 */
.cursor {
    display: inline-block;
    width: 12px;
    height: 1.4rem;
    background-color: #ffffff;
    margin-left: 4px;
    vertical-align: middle;
    box-shadow: 0 0 8px #ffffff;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@media (max-width: 600px) {
    #typing-text { font-size: 1.2rem; }
    .cursor { height: 1.1rem; width: 8px; }
}