/* ============================================================
   通用风格 · 简约白色
   只替换CSS，HTML结构不变
   设计方向：干净中性 / 克制优雅 / 百搭通用
   ============================================================ */

/* 卡片容器 —— 简约白色面板 */
.topic_wrap {
    position: relative;
    /* 纯净白底，带极淡的灰渐变，干净通透 */
    background: linear-gradient(175deg, #ffffff 0%, #fefefe 40%, #fdfdfd 70%, #fcfcfc 100%);

    /* 极细的浅灰边框，克制不张扬 */
    border: 1px solid #eeeeee;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    transition: all 0.35s ease;
    transform: translateY(0);
}

/* 标题 —— 简约通用标题 */
.topic_wrap .title {
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    /* 系统无衬线，干净中性 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1f2329;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: none;
    /* 底部极细的浅灰线 */
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

/* 标题下方的小装饰点，像极简的设计标记 */
.topic_wrap .title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #d0d0d0;
    border-radius: 50%;
}

/* 打字机容器 */
.typewriter-container {
    width: fit-content;
    margin: 0 auto;
    position: relative;
}

/* 顶部装饰 —— 极简的浅灰细线 */
.typewriter-container::before {
    content: '';
    display: block;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(200, 200, 200, 0.3) 20%,
        rgba(200, 200, 200, 0.6) 50%,
        rgba(200, 200, 200, 0.3) 80%,
        transparent 100%);
    margin-bottom: 14px;
}

/* 打字机核心 —— 简约通用文字 */
.typewriter {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.03em;
    /* 系统无衬线，跨平台一致 */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #4a4f57;                 /* 中灰，柔和易读 */
    text-shadow: none;
    white-space: nowrap;
    overflow: hidden;
    border-right: 0.08em solid #b0b0b0; /* 浅灰光标，干净 */
    width: 0;

    animation:
        typing 3s steps(10, end) forwards,
        blink-caret 1s step-end infinite;
}

/* 打字动画 */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* 光标闪烁 —— 浅灰，柔和 */
@keyframes blink-caret {
    from, to { border-right-color: transparent; }
    50% { border-right-color: #b0b0b0; }
}

/* 伪元素 —— 右上角"EP.01"章节标识 */
.topic_wrap::before {
    content: 'EP.01';
    position: absolute;
    top: 12px;
    right: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: #b0b0b0;
    pointer-events: none;
    z-index: 0;
    border: 1px solid rgba(176, 176, 176, 0.25);
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    text-shadow: none;
}

/* 伪元素 —— 左下角"READ MORE"提示 */
.topic_wrap::after {
    content: 'READ MORE';
    position: absolute;
    bottom: 12px;
    left: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(176, 176, 176, 0.5);
    pointer-events: none;
    z-index: 0;
    text-shadow: none;
    animation: read-blink 2.5s ease-in-out infinite;
}

@keyframes read-blink {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.9; }
}

/* 确保内容在伪元素之上 */
.topic_wrap > * {
    position: relative;
    z-index: 1;
}