/* LSTM - 公共样式 + LSTM 特有 */
@import url("cnn.css");

/* ── 唐诗续写 Demo ── */
.poem-demo-wrap {
    display: flex;
    gap: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.poem-control-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
    width: 100%;
}

@media (min-width: 768px) {
    .poem-control-panel {
        width: 220px;
    }
}

.poem-input-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.poem-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.03em;
}

.poem-slider-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1a6fe8;
    background: #eff6ff;
    border-radius: 10px;
    padding: 0.05rem 0.5rem;
}

.poem-seed-input {
    padding: 0.45rem 0.75rem;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.poem-seed-input:focus {
    outline: none;
    border-color: #1a6fe8;
}

.poem-range {
    width: 100%;
    accent-color: #1a6fe8;
    cursor: pointer;
    margin: 0;
}

.poem-hint {
    margin: 0;
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.4;
}

.poem-btn-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

.poem-status {
    font-size: 0.76rem;
    color: #334155;
    min-height: 1.2em;
}

/* 右侧结果卡 */
.poem-result-box {
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.poem-result-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #334155;
    letter-spacing: 0.03em;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 0.25rem;
}

.poem-output {
    font-size: 1.05rem;
    line-height: 2;
    color: #1e293b;
    min-height: 120px;
    font-family: "STKaiti", "KaiTi", "楷体", serif;
    letter-spacing: 0.06em;
    word-break: break-all;
}

.poem-placeholder {
    color: #94a3b8;
    font-size: 0.88rem;
    font-family: inherit;
}

.poem-seed-text {
    color: #1a6fe8;
    font-weight: 700;
}

.poem-char {
    display: inline;
}

.poem-char-new {
    animation: poem-fade-in 0.2s ease forwards;
}

@keyframes poem-fade-in {
    from {
        opacity: 0;
        transform: translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cell-state {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.cell-state-value {
    font-family: monospace;
    font-size: 1rem;
    text-align: center;
    padding: 0.4rem;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}
