/* syntax-input.css — 语法可视化分析【输入组件】样式
 * 2026-09-28 从 templates/front/fragments/syntax-input.html 的 <style> 抽出。
 *
 * 为什么必须独立成文件（别再塞回 fragment）：
 *   两个使用页（index.html / syntax.html）都会 Vue.createApp().mount('#main')，
 *   Vue 编译 #main 的 innerHTML 作为模板时会【直接丢弃 <style> 节点】，
 *   样式写在 fragment 里会随 mount 一起消失（页面表现＝完全没样式）。
 *   与 syntax-card.css 保持同一套约定。
 *
 * si- 前缀为组件作用域，页面勿覆盖。
 */

.si-form {
    margin: 0;
}

.si-textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    resize: vertical;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.si-textarea:focus {
    border-color: #12b466;
    box-shadow: 0 0 0 3px rgba(18, 180, 102, .12);
}

.si-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.si-tip {
    flex: 1;
    min-width: 200px;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.si-tip a {
    color: #059669;
    text-decoration: none;
}

.si-tip a:hover {
    text-decoration: underline;
}

.si-btn {
    background: #12b466;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    flex-shrink: 0;
}

.si-btn:hover {
    background: #0d9a56;
}

.si-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* 窄屏：提示语与按钮改为上下堆叠，按钮撑满，避免挤压换行 */
@media (max-width: 540px) {
    .si-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .si-tip {
        min-width: 0;
    }

    .si-btn {
        width: 100%;
    }
}
